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:
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…
Reference in New Issue
Block a user