r99688 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r99687‎ | r99688 | r99689 >
Date:16:13, 13 October 2011
Author:yaron
Status:deferred
Tags:
Comment:
Changed job ID, to avoid possible conflicts with other extensions
Modified paths:
  • /trunk/extensions/PageSchemas/PS_CreatePageJob.php (modified) (history)

Diff [purge]

Index: trunk/extensions/PageSchemas/PS_CreatePageJob.php
@@ -8,24 +8,24 @@
99 class PSCreatePageJob extends Job {
1010
1111 function __construct( $title, $params = '', $id = 0 ) {
12 - parent::__construct( 'createPage', $title, $params, $id );
 12+ parent::__construct( 'pageSchemasCreatePage', $title, $params, $id );
1313 }
1414
1515 /**
16 - * Run a createPage job
 16+ * Run a pageSchemasCreatePage job
1717 * @return boolean success
1818 */
1919 function run() {
2020 wfProfileIn( __METHOD__ );
2121
2222 if ( is_null( $this->title ) ) {
23 - $this->error = "createPage: Invalid title";
 23+ $this->error = "pageSchemasCreatePage: Invalid title";
2424 wfProfileOut( __METHOD__ );
2525 return false;
2626 }
2727 $article = new Article( $this->title );
2828 if ( !$article ) {
29 - $this->error = 'createPage: Article not found "' . $this->title->getPrefixedDBkey() . '"';
 29+ $this->error = 'pageSchemasCreatePage: Article not found "' . $this->title->getPrefixedDBkey() . '"';
3030 wfProfileOut( __METHOD__ );
3131 return false;
3232 }

Status & tagging log