X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=modules.php;h=f8c1a88e383c282ba09f5e0b85ddaccd413db36b;hp=1788cf63b374c0c9f77ca146c116dd1c4f2a46d0;hb=4bbd0f6ac8e11a702e000ffdfbd868a4e8a06ba3;hpb=6c763653e88b9d10627e651ca59c7201d4b7d62b diff --git a/modules.php b/modules.php index 1788cf63b3..f8c1a88e38 100644 --- a/modules.php +++ b/modules.php @@ -98,7 +98,7 @@ include (PATH."inc/header.php"); // Modules are by default not valid! $MOD_VALID = false; $check = "failed"; -if ((!empty($_CONFIG['maintenance'])) && ($_CONFIG['maintenance'] == "Y") && (!IS_ADMIN()) && ($GLOBALS['module'] != "admin")) { +if ((getConfig('maintenance') == "Y") && (!IS_ADMIN()) && ($GLOBALS['module'] != "admin")) { // Maintain mode is active and you are no admin ADD_FATAL(LANG_DOWN_MAINTAINCE); } elseif (($link) && ($db) && (sizeof($FATAL) == 0)) {