Index: trunk/extensions/SemanticForms/includes/SF_CreatePageJob.php |
— | — | @@ -6,7 +6,8 @@ |
7 | 7 | */ |
8 | 8 | |
9 | 9 | /** |
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. |
11 | 12 | * |
12 | 13 | * @author Yaron Koren |
13 | 14 | * @ingroup SF |
— | — | @@ -29,12 +30,12 @@ |
30 | 31 | wfProfileOut( __METHOD__ ); |
31 | 32 | return false; |
32 | 33 | } |
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 | + } |
39 | 40 | |
40 | 41 | $page_text = $this->params['page_text']; |
41 | 42 | // change global $wgUser variable to the one |