X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-overview.php;h=e3204cb0d03bf77500a30ddc38263864abded766;hb=9e604ce404fe7d2d8dafc259a5fb8cd826aec5e6;hp=677277428947dcfe1aa53906c45f7002fd08470f;hpb=7b0f17cd637e388049d2167811e4332cec1e979b;p=mailer.git diff --git a/inc/modules/admin/what-overview.php b/inc/modules/admin/what-overview.php index 6772774289..e3204cb0d0 100644 --- a/inc/modules/admin/what-overview.php +++ b/inc/modules/admin/what-overview.php @@ -52,7 +52,7 @@ $jobsDone = true; $taskExt = false; // Default is that 'task' is not installed // When the admin is logging in check several things first (new jobs to complete and so on) -if ($GLOBALS['action'] == "login") { +if (getAction() == 'login') { if (EXT_IS_ACTIVE('task')) { // When task extension is registered output advanced overview page $jobsDone = OUTPUT_ADVANCED_OVERVIEW($result_tasks); // This function is provided by the extension 'task' @@ -64,9 +64,9 @@ if ($GLOBALS['action'] == "login") { } // END - if // Are we in 'welcome' page and are there jobs to be done? -if (!ifAdminMenuHasEntries($GLOBALS['action'])) { +if (!ifAdminMenuHasEntries(getAction())) { // This menu is empty and so no content is displayed - LOAD_TEMPLATE('admin_settings_saved', false, sprintf(getMessage('ADMIN_MENU_IS_EMPTY'), $GLOBALS['action'])); + LOAD_TEMPLATE('admin_settings_saved', false, sprintf(getMessage('ADMIN_MENU_IS_EMPTY'), getAction())); } elseif ($jobsDone === true) { // Generate overview of all main menus if ((is_array($GLOBALS['menu']['description'])) && (count($GLOBALS['menu']['description']) > 0)) {