0
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2024-09-19 19:22:14 +02:00

make phar loading optional depending on the extension being present or not

This commit is contained in:
David Goodwin 2018-05-25 09:44:20 +01:00
parent 9c7f60fa76
commit 1c4a6080d7

View File

@ -69,7 +69,9 @@ Config::write($CONF);
require_once("$incpath/languages/language.php");
require_once("$incpath/functions.inc.php");
require_once("$incpath/lib/random_compat.phar");
if(extension_loaded('Phar')) {
require_once("$incpath/lib/random_compat.phar");
}
if (defined('POSTFIXADMIN_CLI')) {
$language = 'en'; # TODO: make configurable or autodetect from locale settings