Add warning if zip lib missing

This commit is contained in:
Laurent Destailleur
2020-01-16 01:11:39 +01:00
parent 4770bdcb79
commit 8f73bce878
5 changed files with 31 additions and 4 deletions

View File

@@ -169,6 +169,17 @@ if (empty($_SERVER["SERVER_ADMIN"]) || $_SERVER["SERVER_ADMIN"] != 'doliwamp@loc
}
}
print '<tr><td>Zip support</td><td>';
if (!class_exists('ZipArchive'))
{
print '<img src="'.$WarningPicturePath.'" alt="Warning"> '.$langs->trans("ErrorPHPDoesNotSupportZip");
}
else
{
print '<img src="'.$OkayPicturePath.'" alt="Ok"> '.$langs->trans("PHPSupportZip");
}
print '</td></tr>';
print '</table>';