From: Gunnar Wrobel
Date: Wed, 10 Mar 2010 08:57:19 +0000 (+0100) Subject: Provide the tasks with the backend. This allows to avoid bootstraping the tasks witho... X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=6d721f555ff7003b6eace653b059349d65cf9ae4;p=horde.git Provide the tasks with the backend. This allows to avoid bootstraping the tasks without using globals. --- diff --git a/framework/LoginTasks/lib/Horde/LoginTasks.php b/framework/LoginTasks/lib/Horde/LoginTasks.php index 38d1fcec4..a28b96378 100644 --- a/framework/LoginTasks/lib/Horde/LoginTasks.php +++ b/framework/LoginTasks/lib/Horde/LoginTasks.php @@ -140,7 +140,7 @@ class Horde_LoginTasks $cur_date = getdate(); foreach ($this->_backend->getTasks() as $classname => $app) { - $ob = new $classname(); + $ob = new $classname($this->_backend); /* If marked inactive, skip the task. */ if (!$ob->active) {