From: Tim Starling Date: Mon, 19 Jun 2006 02:29:21 +0000 (+0000) Subject: Fixed job command naming style X-Git-Tag: 1.31.0-rc.0~56741 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=671e35cbb32882f1799bd10d05647770d73240ce;p=lhc%2Fweb%2Fwiklou.git Fixed job command naming style --- diff --git a/includes/HTMLCacheUpdate.php b/includes/HTMLCacheUpdate.php index dd7c53bc2e..47703b2005 100644 --- a/includes/HTMLCacheUpdate.php +++ b/includes/HTMLCacheUpdate.php @@ -201,7 +201,7 @@ class HTMLCacheUpdateJob extends Job { 'table' => $table, 'start' => $start, 'end' => $end ); - parent::__construct( 'html_cache_update', $title, $params, $id ); + parent::__construct( 'htmlCacheUpdate', $title, $params, $id ); $this->table = $table; $this->start = intval( $start ); $this->end = intval( $end ); diff --git a/includes/JobQueue.php b/includes/JobQueue.php index f82b16f899..3718b9e679 100644 --- a/includes/JobQueue.php +++ b/includes/JobQueue.php @@ -102,7 +102,8 @@ abstract class Job { switch ( $command ) { case 'refreshLinks': return new RefreshLinksJob( $title, $params, $id ); - case 'html_cache_update': + case 'htmlCacheUpdate': + case 'html_cache_update': # BC return new HTMLCacheUpdateJob( $title, $params['table'], $params['start'], $params['end'], $id ); default: throw new MWException( "Invalid job command \"$command\"" );