mirror of
https://github.com/danog/MadelineProto.git
synced 2025-01-23 00:51:12 +01:00
Small fix
This commit is contained in:
parent
101052d516
commit
30e2c14020
@ -278,8 +278,8 @@ final class Magic
|
||||
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::$can_getmypid = !self::$altervista && !self::$zerowebhost;
|
||||
self::$version = null;
|
||||
if (\file_exists(__DIR__.'/../../../.git/refs/heads/stable')) {
|
||||
self::$version = null;
|
||||
try {
|
||||
self::$version = @\file_get_contents(__DIR__.'/../../../.git/refs/heads/stable');
|
||||
self::$revision = 'Revision: '.self::$version;
|
||||
|
Loading…
x
Reference in New Issue
Block a user