r90403 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r90402‎ | r90403 | r90404 >
Date:16:58, 19 June 2011
Author:yaron
Status:deferred
Tags:
Comment:
Improved formatting
Modified paths:
  • /trunk/extensions/SemanticForms/includes/SF_CreatePageJob.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticForms/includes/SF_CreatePageJob.php
@@ -6,7 +6,8 @@
77 */
88
99 /**
10 - * Background job to create a new page, for use by the 'CreateClass' special page
 10+ * Background job to create a new page, for use by the 'CreateClass' special
 11+ * page.
1112 *
1213 * @author Yaron Koren
1314 * @ingroup SF
@@ -29,12 +30,12 @@
3031 wfProfileOut( __METHOD__ );
3132 return false;
3233 }
33 - $article = new Article( $this->title, 0 );
34 - if ( !$article ) {
35 - $this->error = 'createPage: Article not found "' . $this->title->getPrefixedDBkey() . '"';
36 - wfProfileOut( __METHOD__ );
37 - return false;
38 - }
 34+ $article = new Article( $this->title, 0 );
 35+ if ( !$article ) {
 36+ $this->error = 'createPage: Article not found "' . $this->title->getPrefixedDBkey() . '"';
 37+ wfProfileOut( __METHOD__ );
 38+ return false;
 39+ }
3940
4041 $page_text = $this->params['page_text'];
4142 // change global $wgUser variable to the one