Removed dependence on register_globals from everything except the special pages....
[lhc/web/wiklou.git] / includes / SkinPHPTal.php
index 977c588..8ada94c 100644 (file)
                function outputPage( &$out ) {
                        global $wgTitle, $wgArticle, $wgUser, $wgLang, $wgOut;
                        global $wgScriptPath, $wgStyleSheetPath, $wgLanguageCode, $wgUseNewInterlanguage;
-                       global $wgOutputEncoding, $wgUseDatabaseMessages, $action, $oldid, $diff;
+                       global $wgOutputEncoding, $wgUseDatabaseMessages, $wgRequest;
+                       
+                       $action = $wgRequest->getText( 'action' );
+                       $oldid = $wgRequest->getVal( 'oldid' );
+                       $diff = $wgRequest->getVal( 'diff' );
 
                        $this->initPage();
                        $tpl = new PHPTAL($this->template . '.pt', 'templates');