'what','action','module' and 'output_mode' wrapped into functions (WARNUNG: Code...
[mailer.git] / inc / modules / admin / what-overview.php
index 677277428947dcfe1aa53906c45f7002fd08470f..e3204cb0d03bf77500a30ddc38263864abded766 100644 (file)
@@ -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)) {