1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-26 23:34:44 +01:00

Avoid getmypid calls on altervista

This commit is contained in:
Daniil Gentili 2018-03-27 20:48:08 +02:00
parent e7c595c0a2
commit ed68a88598

View File

@ -74,6 +74,7 @@ class Logger
self::$isatty = defined('STDOUT') && function_exists('posix_isatty') && posix_isatty(STDOUT);
} catch (\danog\MadelineProto\Exception $e) {
}
self::$can_getmypid = !(isset($_SERVER['SERVER_ADMIN']) && strpos($_SERVER['SERVER_ADMIN'], 'altervista.org'));
self::$inited = true;
}
}