X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=modules.php;h=41b049938a9696da4f5f66f0e3fe7206129a7881;hp=e85392bba4d1aed9c0ec7f4a99d412649d89068f;hb=5853d6eaaa9135f9e31557830e26f1794e0e9eda;hpb=60494e212a67fe360bfbb481eb4928480a6f379b diff --git a/modules.php b/modules.php index e85392bba4..41b049938a 100644 --- a/modules.php +++ b/modules.php @@ -94,7 +94,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 ((!empty($_CONFIG['maintenance'])) && ($_CONFIG['maintenance'] == "Y") && (!IS_ADMIN()) && ($GLOBALS['module'] != "admin")) { // Maintain mode is active and you are no admin ADD_FATAL(LANG_DOWN_MAINTAINCE); @@ -109,7 +109,7 @@ if ((!empty($_CONFIG['maintenance'])) && ($_CONFIG['maintenance'] == 'Y') && (!I case "mem_only": case "done": // Construct module name - define('__MODULE', sprintf(PATH."inc/modules/%s.php", $GLOBALS['module'])); + define('__MODULE', sprintf("%sinc/modules/%s.php", PATH, $GLOBALS['module'])); // Does the module exists on local file system? if (((file_exists(__MODULE)) || (!empty($URL))) && (sizeof($FATAL) == 0))