1
0
mirror of https://github.com/danog/MadelineProto.git synced 2025-01-23 06:51:23 +01:00

Small fix

This commit is contained in:
Daniil Gentili 2023-01-16 23:12:58 +01:00
parent 30e2c14020
commit f1dccb28ce

View File

@ -282,10 +282,10 @@ final class Magic
if (\file_exists(__DIR__.'/../../../.git/refs/heads/stable')) { if (\file_exists(__DIR__.'/../../../.git/refs/heads/stable')) {
try { try {
self::$version = @\file_get_contents(__DIR__.'/../../../.git/refs/heads/stable'); self::$version = @\file_get_contents(__DIR__.'/../../../.git/refs/heads/stable');
self::$revision = 'Revision: '.self::$version;
} catch (Throwable $e) { } catch (Throwable $e) {
} }
} }
self::$revision = 'Revision: '.self::$version;
self::$initedLight = true; self::$initedLight = true;
if ($light) { if ($light) {
return; return;