chdir if the request is not from the web.
This commit is contained in:
parent
ff484b7203
commit
9f1bd0ca3f
|
@ -13,6 +13,14 @@
|
||||||
// --------------------------------------------------------------
|
// --------------------------------------------------------------
|
||||||
if ( ! isset($web)) $web = false;
|
if ( ! isset($web)) $web = false;
|
||||||
|
|
||||||
|
// --------------------------------------------------------------
|
||||||
|
// Change to the current directory if not from the web.
|
||||||
|
// --------------------------------------------------------------
|
||||||
|
if ( ! $web)
|
||||||
|
{
|
||||||
|
chdir(__DIR__);
|
||||||
|
}
|
||||||
|
|
||||||
// --------------------------------------------------------------
|
// --------------------------------------------------------------
|
||||||
// Define the directory separator for the environment.
|
// Define the directory separator for the environment.
|
||||||
// --------------------------------------------------------------
|
// --------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue