Index: trunk/extensions/ArticleCreationWorkflow/SpecialArticleCreationLanding.php |
— | — | @@ -15,8 +15,9 @@ |
16 | 16 | } |
17 | 17 | |
18 | 18 | public function execute( $par ) { |
19 | | - global $wgOut, $wgUser, $wgRequest; |
| 19 | + global $wgUser, $wgRequest; |
20 | 20 | |
| 21 | + $out = $this->getOutput(); |
21 | 22 | $title = Title::newFromText( $par ); |
22 | 23 | |
23 | 24 | // bad title |
— | — | @@ -25,18 +26,18 @@ |
26 | 27 | } |
27 | 28 | // title exists |
28 | 29 | if ( $title->exists() ) { |
29 | | - $wgOut->redirect( $title->getFullURL() ); |
| 30 | + $out->redirect( $title->getFullURL() ); |
30 | 31 | return; |
31 | 32 | } |
32 | 33 | |
33 | 34 | $this->pageTitle = wfMsg( 'ac-landing-page-title', $title ); |
34 | | - $wgOut->setPageTitle( $this->pageTitle ); |
35 | | - $wgOut->setRobotPolicy( 'noindex,nofollow' ); |
36 | | - $wgOut->addModules( 'ext.articleCreation.core' ); |
37 | | - $wgOut->addModules( 'ext.articleCreation.user' ); |
38 | | - $wgOut->addHtml( ArticleCreationTemplates::getLandingPage($par) ); |
| 35 | + $out->setPageTitle( $this->pageTitle ); |
| 36 | + $out->setRobotPolicy( 'noindex,nofollow' ); |
| 37 | + $out->addModules( 'ext.articleCreation.core' ); |
| 38 | + $out->addModules( 'ext.articleCreation.user' ); |
| 39 | + $out->addHtml( ArticleCreationTemplates::getLandingPage($par) ); |
39 | 40 | |
40 | | - ArticleCreationUtil::TrackSpecialLandingPage( $wgRequest, $wgUser, $par ); |
| 41 | + ArticleCreationUtil::TrackSpecialLandingPage( $wgRequest, $wgUser, $par ); |
41 | 42 | } |
42 | 43 | |
43 | 44 | } |