- 'id' => $id,
- 'admin' => $admin,
- 'infos' => $infos,
- 'uid' => $uid,
- 'type' => $type_out,
- 'created' => MAKE_DATETIME($created, "2")
- );
- LOAD_TEMPLATE("admin_list_task_rows", false, $content);
+ 'admin' => $content['assigned_admin'],
+ 'userid' => $content['userid'],
+ 'type' => $content['task_type_msg'],
+ 'created' => generateDateTime($content['task_created'], '2')
+ ));
+
+ // Do we have an extension task?
+ if (($content['task_type'] == 'EXTENSION') && (isExtensionNameValid($content['infos'])) && (!isExtensionInstalled($content['infos']))) {
+ // Load extension row template
+ // @TODO Rewrite this to $OUT .= ..., true, ...
+ loadTemplate('admin_list_task_ext_rows', false, $content);
+ } else {
+ // Load default row template
+ // @TODO Rewrite this to $OUT .= ..., true, ...
+ loadTemplate('admin_list_task_rows', false, $content);
+ }
+
+ // Switch colors