Skip to content

Commit

Permalink
Recommend uv
Browse files Browse the repository at this point in the history
  • Loading branch information
danog committed Aug 5, 2023
1 parent bfa9264 commit 27485be
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
"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-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"
},
"authors": [
Expand Down
3 changes: 3 additions & 0 deletions src/MTProto.php
Original file line number Diff line number Diff line change
Expand Up @@ -1687,6 +1687,9 @@ public static function getWebWarnings(): string
if (!\extension_loaded('gmp')) {
$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;
}

Expand Down

0 comments on commit 27485be

Please sign in to comment.