mirror of
https://github.com/friendica/friendica
synced 2024-11-18 15:43:42 +00:00
Check for GMP module
This commit is contained in:
parent
974564f75e
commit
f2a4aecc05
2 changed files with 8 additions and 1 deletions
|
@ -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 a new issue