mirror of
https://github.com/danog/MadelineProto.git
synced 2024-12-02 12:17:47 +01:00
Fix
This commit is contained in:
parent
71ba3bc564
commit
0b56199466
@ -60,7 +60,7 @@ if (defined("MADELINE_REAL_ROOT")) {
|
|||||||
} else {
|
} else {
|
||||||
die("MadelineProto loader: you must include this file in another PHP script, see https://docs.madelineproto.xyz for more info.".PHP_EOL);
|
die("MadelineProto loader: you must include this file in another PHP script, see https://docs.madelineproto.xyz for more info.".PHP_EOL);
|
||||||
}
|
}
|
||||||
\define("MADELINE_REAL_ROOT", \dirname(Phar::running(false)));
|
\define("MADELINE_REAL_ROOT", __DIR__);
|
||||||
@chdir(\MADELINE_REAL_ROOT);
|
@chdir(\MADELINE_REAL_ROOT);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user