1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-30 08:18:59 +01:00

Recommend uv

This commit is contained in:
Daniil Gentili 2023-08-05 23:42:57 +02:00
parent bfa9264d9a
commit 27485be888
2 changed files with 4 additions and 0 deletions

View File

@ -78,6 +78,7 @@
"ext-ffi": "Install the primemodule and FFI extensions to speed up MadelineProto (https://prime.madelineproto.xyz)", "ext-ffi": "Install the primemodule and FFI extensions to speed up MadelineProto (https://prime.madelineproto.xyz)",
"ext-pdo": "Install the pdo extension to store session data on MySQL", "ext-pdo": "Install the pdo extension to store session data on MySQL",
"ext-openssl": "Install the openssl extension for faster crypto", "ext-openssl": "Install the openssl extension for faster crypto",
"ext-uv": "Install the gmp extension to greatly speed up MadelineProto!",
"ext-gmp": "Install the gmp extension to speed up authorization" "ext-gmp": "Install the gmp extension to speed up authorization"
}, },
"authors": [ "authors": [

View File

@ -1687,6 +1687,9 @@ final class MTProto implements TLCallback, LoggerGetter
if (!\extension_loaded('gmp')) { if (!\extension_loaded('gmp')) {
$warning .= "<h2 style='color:red;'>".\htmlentities(\sprintf(Lang::$current_lang['extensionRecommended'], 'gmp'))."</h2>"; $warning .= "<h2 style='color:red;'>".\htmlentities(\sprintf(Lang::$current_lang['extensionRecommended'], 'gmp'))."</h2>";
} }
if (!\extension_loaded('uv')) {
$warning .= "<h2 style='color:red;'>".\htmlentities(\sprintf(Lang::$current_lang['extensionRecommended'], 'uv'))."</h2>";
}
return $warning; return $warning;
} }