Check for GMP module
This commit is contained in:
parent
974564f75e
commit
f2a4aecc05
|
@ -263,7 +263,7 @@ class Avatar
|
|||
{
|
||||
$localFile = self::getCacheFile($avatar);
|
||||
if (!empty($localFile)) {
|
||||
unlink($localFile);
|
||||
@unlink($localFile);
|
||||
Logger::debug('Unlink avatar', ['avatar' => $avatar]);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -486,6 +486,13 @@ class Installer
|
|||
);
|
||||
$returnVal = $returnVal ? $status : false;
|
||||
|
||||
$status = $this->checkFunction('gmp_strval',
|
||||
DI::l10n()->t('GNU Multiple Precision PHP module'),
|
||||
DI::l10n()->t('Error: GNU Multiple Precision PHP module required but not installed.'),
|
||||
true
|
||||
);
|
||||
$returnVal = $returnVal ? $status : false;
|
||||
|
||||
return $returnVal;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user