From 0b56199466a05914195206f37ef26aa585d54101 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Mon, 17 Jul 2023 07:55:42 +0200 Subject: [PATCH] Fix --- tools/makephar.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/makephar.php b/tools/makephar.php index 0e7174de7..281b023b2 100755 --- a/tools/makephar.php +++ b/tools/makephar.php @@ -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); } }