Fix setting auth and documentation.
authorJan Schneider <jan@horde.org>
Mon, 20 Sep 2010 10:30:11 +0000 (12:30 +0200)
committerJan Schneider <jan@horde.org>
Mon, 20 Sep 2010 11:00:18 +0000 (13:00 +0200)
horde/bin/run_task

index f5379ea..e6719cf 100755 (executable)
@@ -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;