[horde] CVS patch: scheduler and sql

W. Tasin tasin at fhm.edu
Sun Apr 4 08:51:10 PDT 2004


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
-------------- next part --------------
--- 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 {



-------------- next part --------------
--- 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']);
     }
 





More information about the horde mailing list