From 7fe3f07baec50ae93fde9530dd9cb69f56481aff Mon Sep 17 00:00:00 2001 From: paul Date: Sun, 28 Jan 2007 21:02:30 +0000 Subject: [PATCH] Fix for #2139 - Alib API change broke changeSchedulerPassword.php --- .../storageServer/var/changeSchedulerPassword.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/campcaster/src/modules/storageServer/var/changeSchedulerPassword.php b/campcaster/src/modules/storageServer/var/changeSchedulerPassword.php index 70a0751dc..05c0d8696 100755 --- a/campcaster/src/modules/storageServer/var/changeSchedulerPassword.php +++ b/campcaster/src/modules/storageServer/var/changeSchedulerPassword.php @@ -9,9 +9,9 @@ * */ - require_once dirname(__FILE__).'/../var/conf.php'; - require_once dirname(__FILE__).'/../var/BasicStor.php'; - include_once 'DB.php'; + require_once(dirname(__FILE__).'/../var/conf.php'); + require_once(dirname(__FILE__).'/../../alib/var/Subjects.php'); + include_once('DB.php'); if(trim(`whoami`) != 'root') { die("Please run this script as root.\n"); @@ -24,10 +24,8 @@ } $CC_DBC->setFetchMode(DB_FETCHMODE_ASSOC); - $bs = new BasicStor(); - $pass = $argv[1]; - $r = $bs->passwd('scheduler', NULL, $pass); + $r = Subjects::Passwd('scheduler', NULL, $pass); if (PEAR::isError($r)) { die($r->getMessage()); }