Fixed job command naming style
authorTim Starling <tstarling@users.mediawiki.org>
Mon, 19 Jun 2006 02:29:21 +0000 (02:29 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Mon, 19 Jun 2006 02:29:21 +0000 (02:29 +0000)
includes/HTMLCacheUpdate.php
includes/JobQueue.php

index dd7c53b..47703b2 100644 (file)
@@ -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 );
index f82b16f..3718b9e 100644 (file)
@@ -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\"" );