Fix scope.
authorJan Schneider <jan@horde.org>
Thu, 11 Feb 2010 22:09:50 +0000 (23:09 +0100)
committerJan Schneider <jan@horde.org>
Thu, 11 Feb 2010 22:14:44 +0000 (23:14 +0100)
kronolith/lib/Ajax/Application.php

index 4b5f746..e17c1ee 100644 (file)
@@ -287,7 +287,7 @@ class Kronolith_Ajax_Application extends Horde_Ajax_Application_Base
             return false;
         }
 
-        $task = $registry->tasks->getTask($vars->list, $vars->id);
+        $task = $GLOBALS['registry']->tasks->getTask($vars->list, $vars->id);
         if (!$task) {
             $GLOBALS['notification']->push(_("The requested task was not found."), 'horde.error');
             return false;