diff --git a/paths.php b/paths.php index 152a4f79..afc2bf58 100644 --- a/paths.php +++ b/paths.php @@ -13,6 +13,14 @@ // -------------------------------------------------------------- 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. // --------------------------------------------------------------