cli : argv must be global to be used

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2991 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2016-08-03 11:49:41 +00:00
parent 6101115214
commit 97194883b8

View File

@@ -22,6 +22,7 @@ class cli
/** The construtor define the catching of the errors */
public function __construct ()
{
global $argv;
$launcher = $argv[0];
chdir (dirname ($argv[0])."/..");
// Catch the trigger_errors and display them politely