http://www.mediawiki.org/wiki/Special:Code/MediaWiki/99688

Revision: 99688
Author:   yaron
Date:     2011-10-13 16:13:13 +0000 (Thu, 13 Oct 2011)
Log Message:
-----------
Changed job ID, to avoid possible conflicts with other extensions

Modified Paths:
--------------
    trunk/extensions/PageSchemas/PS_CreatePageJob.php

Modified: trunk/extensions/PageSchemas/PS_CreatePageJob.php
===================================================================
--- trunk/extensions/PageSchemas/PS_CreatePageJob.php   2011-10-13 16:10:08 UTC 
(rev 99687)
+++ trunk/extensions/PageSchemas/PS_CreatePageJob.php   2011-10-13 16:13:13 UTC 
(rev 99688)
@@ -8,24 +8,24 @@
 class PSCreatePageJob extends Job {
 
        function __construct( $title, $params = '', $id = 0 ) {
-               parent::__construct( 'createPage', $title, $params, $id );
+               parent::__construct( 'pageSchemasCreatePage', $title, $params, 
$id );
        }
 
        /**
-        * Run a createPage job
+        * Run a pageSchemasCreatePage job
         * @return boolean success
         */
        function run() {
                wfProfileIn( __METHOD__ );
 
                if ( is_null( $this->title ) ) {
-                       $this->error = "createPage: Invalid title";
+                       $this->error = "pageSchemasCreatePage: Invalid title";
                        wfProfileOut( __METHOD__ );
                        return false;
                }
                $article = new Article( $this->title );
                if ( !$article ) {
-                       $this->error = 'createPage: Article not found "' . 
$this->title->getPrefixedDBkey() . '"';
+                       $this->error = 'pageSchemasCreatePage: Article not 
found "' . $this->title->getPrefixedDBkey() . '"';
                        wfProfileOut( __METHOD__ );
                        return false;
                }


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to