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

pull/242/head
David Goodwin 6 years ago
parent ceb261036a
commit 57714adc00

@ -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

Loading…
Cancel
Save