diff --git a/cli.php b/cli.php index 1c0a1c4..d693899 100644 --- a/cli.php +++ b/cli.php @@ -22,6 +22,8 @@ class cli /** The construtor define the catching of the errors */ public function __construct () { + $launcher = $argv[0]; + chdir (dirname ($argv[0])."/.."); // Catch the trigger_errors and display them politely set_error_handler(array(&$this, "cliErrorHandler")); }