X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-list_task.php;h=b2c97da3607e55794f2fdc54913f089427c38020;hb=cc59ea1cce3e0fafc2cc6c9e36142698cf2b58ef;hp=fa00387bac20c4085a4e8744880117b1abe300b7;hpb=9ee99fa4396228a11373b8529b24411a48e51891;p=mailer.git diff --git a/inc/modules/admin/what-list_task.php b/inc/modules/admin/what-list_task.php index fa00387bac..b2c97da360 100644 --- a/inc/modules/admin/what-list_task.php +++ b/inc/modules/admin/what-list_task.php @@ -43,13 +43,10 @@ if ((!defined('__SECURITY')) || (!isAdmin())) { // Add description as navigation point addYouAreHereLink('admin', __FILE__); -if (!isExtensionActive('task')) { - loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('task')); - return; -} // END - if - $whereStatement = ''; -if (!isGetRequestParameterSet('type')) setGetRequestParameter('type', 'your'); +if (!isGetRequestParameterSet('type')) { + setGetRequestParameter('type', 'your'); +} // END - if switch (getRequestParameter('type')) { case 'your': // List only your own open (new) tasks @@ -78,7 +75,7 @@ switch (getRequestParameter('type')) { default: // Unknown type logDebugMessage(__FILE__, __LINE__, sprintf("Unknown task type %s detected.", getRequestParameter('type'))); - loadTemplate('admin_settings_saved', false, getMaskedMessage('ADMIN_TASK_UNKNOWN_MODE', getRequestParameter('type'))); + displayMessage('{%message,ADMIN_TASK_UNKNOWN_MODE' . getRequestParameter('type') . '%}'); break; } // END - switch @@ -145,9 +142,6 @@ ORDER BY // Init infos $content['infos'] = ''; - // Get admin task - $content['task_type_msg'] = '{--ADMIN_TASK_IS_' . strtoupper($content['task_type']) . '--}'; - // Generate infos switch ($content['task_type']) { case 'EXTENSION': @@ -167,9 +161,6 @@ ORDER BY // Prepare content $content = merge_array($content, array( - 'assign_admin' => $content['assigned_admin'], - 'userid' => $content['userid'], - 'task_type_msg' => $content['task_type_msg'], 'task_created' => generateDateTime($content['task_created'], 2) ));