X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-overview.php;h=e3204cb0d03bf77500a30ddc38263864abded766;hp=04e67c7c3a7dab5b2ce3478527cb6dabdd884507;hb=3f51c40f4fede87228216f9285b745a339e3891d;hpb=a090e351c49fe021fb3064325694da03402332e0 diff --git a/inc/modules/admin/what-overview.php b/inc/modules/admin/what-overview.php index 04e67c7c3a..e3204cb0d0 100644 --- a/inc/modules/admin/what-overview.php +++ b/inc/modules/admin/what-overview.php @@ -38,7 +38,7 @@ // Some security stuff... if ((!defined('__SECURITY')) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php'; require($INC); } @@ -46,13 +46,13 @@ if ((!defined('__SECURITY')) || (!IS_ADMIN())) { // In Opera browsers the menu is being displayed double: ADD_DESCR('admin', __FILE__); // Otherwise load include file 'overview-inc' (old standard overview page) -LOAD_INC_ONCE("inc/modules/admin/overview-inc.php"); +loadIncludeOnce('inc/modules/admin/overview-inc.php'); $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)) {