[prev in list] [next in list] [prev in thread] [next in thread] 

List:       imp
Subject:    [horde] CVS patch: scheduler and sql
From:       "W. Tasin" <tasin () fhm ! edu>
Date:       2004-04-04 15:51:10
Message-ID: 40702EEE.8020303 () fhm ! edu
[Download RAW message or body]

Hi again,

here some patches concerning scheduler.php vfs and sql backend.
The other one was a typo (PEAR_LOG_ERR instead of PEAR_LOG_ERROR), but I 
think  PEAR_LOG_ERR is the wrong log- type.

Ciao

Walter

["schedul.diff" (text/plain)]

--- framework/Scheduler/Scheduler.php	Sat Apr  3 18:03:12 2004
+++ framework/Scheduler/Scheduler.php	Sun Apr  4 12:01:17 2004
@@ -61,7 +61,7 @@
     {
         require_once HORDE_LIBS . 'VFS.php';
         $vfs = &VFS::singleton($GLOBALS['conf']['vfs']['type'],
-                               @$GLOBALS['conf']['vfs']['params']);
+                               Horde::getDriverConfig('vfs', $GLOBALS['conf']['vfs']['type']));
         if (is_a($vfs, 'PEAR_Error')) {
             Horde::logMessage($vfs, __FILE__, __LINE__, PEAR_LOG_ERR);
             return false;
@@ -99,7 +99,7 @@
         $scheduler = &new $class;
 
         $vfs = &VFS::singleton($GLOBALS['conf']['vfs']['type'],
-                               @$GLOBALS['conf']['vfs']['params']);
+                               Horde::getDriverConfig('vfs', $GLOBALS['conf']['vfs']['type']));
         if (is_a($vfs, 'PEAR_Error')) {
             Horde::logMessage($vfs, __FILE__, __LINE__, PEAR_LOG_ERR);
         } else {




["schedul_cron.diff" (text/plain)]

--- framework/Scheduler/Scheduler/cron.php	Tue Jan  6 02:48:40 2004
+++ framework/Scheduler/Scheduler/cron.php	Sun Apr  4 12:17:57 2004
@@ -1,6 +1,6 @@
 <?php
 
-require_once 'Horde/Scheduler.php';
+require_once HORDE_LIBS . 'Horde/Scheduler.php';
 
 /**
  * Horde_Scheduler_cron:: Sort of a cron replacement in a PHP cli
@@ -110,7 +110,7 @@
 
     function runcmd(&$task)
     {
-        Horde::logMessage('Horde_Scheduler_Cron::runcmd(): ' . $task['cmd'] . ' run \
by ' . $task['uid'], __FILE__, __LINE__, PEAR_LOG_ERROR); +        \
Horde::logMessage('Horde_Scheduler_Cron::runcmd(): ' . $task['cmd'] . ' run by ' . \
$task['uid'], __FILE__, __LINE__, PEAR_LOG_INFO);  return shell_exec($task['cmd']);
     }
 



-- 
Horde mailing list - Join the hunt: http://horde.org/bounties/#horde
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: horde-unsubscribe@lists.horde.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic