From b13cd375d8832bf7ae7ed16fe587476e7d4cd214 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Mon, 20 Sep 2010 12:30:11 +0200 Subject: [PATCH] Fix setting auth and documentation. --- horde/bin/run_task | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/horde/bin/run_task b/horde/bin/run_task index f5379eada..e6719cf03 100755 --- a/horde/bin/run_task +++ b/horde/bin/run_task @@ -5,7 +5,8 @@ * * Usage: run_task -a [app] -t [taskname] -u [username] * Taskname is the name of the file in the application's SystemTask/Task - * directory - this script will automatically build the full class name. + * directory without the .php extension - this script will automatically + * build the full class name. * * Copyright 2010 The Horde Project (http://www.horde.org/) * @@ -59,7 +60,7 @@ if (empty($username)) { exit; } -Horde_Auth::setAuth($username, array()); +$registry->setAuth($username, array()); $registry->pushApp($app, array('check_perms' => false)); $class = $app . '_LoginTasks_SystemTask_' . $taskname; -- 2.11.0