// Add description as navigation point
addYouAreHereLink('admin', __FILE__);
-if (!isExtensionActive('task')) {
- displayMessage(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
default: // Unknown type
logDebugMessage(__FILE__, __LINE__, sprintf("Unknown task type %s detected.", getRequestParameter('type')));
- displayMessage(getMaskedMessage('ADMIN_TASK_UNKNOWN_MODE', getRequestParameter('type')));
+ displayMessage('{%message,ADMIN_TASK_UNKNOWN_MODE' . getRequestParameter('type') . '%}');
break;
} // END - switch
} else {
// Start listing tasks matching selected filter
$result_tasks = SQL_QUERY('SELECT
- `id`, `assigned_admin`, `userid`, `task_type`, `subject`, `text`, `task_created`
+ `id`,`assigned_admin`,`userid`,`task_type`,`subject`,`text`,`task_created`
FROM
`{?_MYSQL_PREFIX?}_task_system`
WHERE
// Update query
$result_tasks = SQL_QUERY('SELECT
- `id`, `assigned_admin`, `userid`, `task_type`, `subject`, `text`, `task_created`
+ `id`,`assigned_admin`,`userid`,`task_type`,`subject`,`text`,`task_created`
FROM
`{?_MYSQL_PREFIX?}_task_system`
WHERE
// 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':
// 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)
));