https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112766

Revision: 112766
Author:   johnduhart
Date:     2012-03-01 03:11:37 +0000 (Thu, 01 Mar 2012)
Log Message:
-----------
ContextSource in the Special page

Modified Paths:
--------------
    trunk/extensions/ArticleCreationWorkflow/SpecialArticleCreationLanding.php

Modified: 
trunk/extensions/ArticleCreationWorkflow/SpecialArticleCreationLanding.php
===================================================================
--- trunk/extensions/ArticleCreationWorkflow/SpecialArticleCreationLanding.php  
2012-03-01 02:24:49 UTC (rev 112765)
+++ trunk/extensions/ArticleCreationWorkflow/SpecialArticleCreationLanding.php  
2012-03-01 03:11:37 UTC (rev 112766)
@@ -15,8 +15,9 @@
        }
 
        public function execute( $par ) {
-               global $wgOut, $wgUser, $wgRequest;
+               global $wgUser, $wgRequest;
 
+               $out = $this->getOutput();
                $title = Title::newFromText( $par );
 
                // bad title 
@@ -25,18 +26,18 @@
                }
                // title exists
                if ( $title->exists() ) {
-                       $wgOut->redirect( $title->getFullURL() );
+                       $out->redirect( $title->getFullURL() );
                        return;
                }
                
                $this->pageTitle = wfMsg( 'ac-landing-page-title', $title );
-               $wgOut->setPageTitle( $this->pageTitle );
-               $wgOut->setRobotPolicy( 'noindex,nofollow' );
-               $wgOut->addModules( 'ext.articleCreation.core' );
-               $wgOut->addModules( 'ext.articleCreation.user' );
-               $wgOut->addHtml( ArticleCreationTemplates::getLandingPage($par) 
);
+               $out->setPageTitle( $this->pageTitle );
+               $out->setRobotPolicy( 'noindex,nofollow' );
+               $out->addModules( 'ext.articleCreation.core' );
+               $out->addModules( 'ext.articleCreation.user' );
+               $out->addHtml( ArticleCreationTemplates::getLandingPage($par) );
 
-               ArticleCreationUtil::TrackSpecialLandingPage( $wgRequest, 
$wgUser, $par );              
+               ArticleCreationUtil::TrackSpecialLandingPage( $wgRequest, 
$wgUser, $par );
        }
        
 }


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

Reply via email to