1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-30 08:18:59 +01:00
This commit is contained in:
Daniil Gentili 2023-07-17 07:55:42 +02:00
parent 71ba3bc564
commit 0b56199466

View File

@ -60,7 +60,7 @@ if (defined("MADELINE_REAL_ROOT")) {
} else {
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);
}
}