Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/Controller/SaveTaskController.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ public function handle(ServerRequestInterface $request): ResponseInterface

if (!$form->validate($vars)) {
$_REQUEST['actionID'] = 'task_form';
// Legacy task.php expects Horde globals (e.g. on task list reload).
$GLOBALS['registry'] = $this->registry;
require NAG_BASE . '/task.php';
exit;
}
Expand Down
6 changes: 6 additions & 0 deletions task.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@ function _delete($task_id, $tasklist_id)
require_once __DIR__ . '/lib/Application.php';
Horde_Registry::appInit('nag');

global $injector, $nag_shares, $notification, $registry;
if (!isset($registry)) {
$registry = $GLOBALS['registry']
?? $injector->getInstance('Horde_Registry');
}

$vars = Horde_Variables::getDefaultVariables();

/* Redirect to the task list if no action has been requested. */
Expand Down
Loading