Fixes to OSB to work with KH 3.3

This commit is contained in:
Deon George
2012-11-10 10:13:57 +11:00
parent ea36639638
commit 6db02ae77d
238 changed files with 813 additions and 938 deletions

View File

@@ -43,7 +43,7 @@ class Kohana_Cron
*/
protected static function _lock()
{
$config = Kohana::config('cron');
$config = Kohana::$config->load('cron');
$result = FALSE;
if (file_exists($config->lock) AND ($stat = @stat($config->lock)) AND time() - $config->window < $stat['mtime'])
@@ -80,7 +80,7 @@ class Kohana_Cron
*/
protected static function _save()
{
Kohana::cache("Cron::run()", Cron::$_times, Kohana::config('cron')->window * 2);
Kohana::cache("Cron::run()", Cron::$_times, Kohana::$config->load('cron')->window * 2);
}
/**
@@ -88,7 +88,7 @@ class Kohana_Cron
*/
protected static function _unlock()
{
return @unlink(Kohana::config('cron')->lock);
return @unlink(Kohana::$config->load('cron')->lock);
}
/**
@@ -107,7 +107,7 @@ class Kohana_Cron
Cron::_load();
$now = time();
$threshold = $now - Kohana::config('cron')->window;
$threshold = $now - Kohana::$config->load('cron')->window;
foreach (Cron::$_jobs as $name => $job)
{