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 22:54:05 +01:00
parent 101052d516
commit 30e2c14020

View File

@ -278,8 +278,8 @@ final class Magic
self::$altervista = isset($_SERVER['SERVER_ADMIN']) && \strpos($_SERVER['SERVER_ADMIN'], 'altervista.org'); self::$altervista = isset($_SERVER['SERVER_ADMIN']) && \strpos($_SERVER['SERVER_ADMIN'], 'altervista.org');
self::$zerowebhost = isset($_SERVER['SERVER_ADMIN']) && \strpos($_SERVER['SERVER_ADMIN'], '000webhost.io'); self::$zerowebhost = isset($_SERVER['SERVER_ADMIN']) && \strpos($_SERVER['SERVER_ADMIN'], '000webhost.io');
self::$can_getmypid = !self::$altervista && !self::$zerowebhost; self::$can_getmypid = !self::$altervista && !self::$zerowebhost;
self::$version = null;
if (\file_exists(__DIR__.'/../../../.git/refs/heads/stable')) { if (\file_exists(__DIR__.'/../../../.git/refs/heads/stable')) {
self::$version = null;
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; self::$revision = 'Revision: '.self::$version;