Oops, forgot a line. Now this works in Modern too. Yay for code duplication . . .
authorAryeh Gregor <simetrical@users.mediawiki.org>
Mon, 21 Jul 2008 13:15:19 +0000 (13:15 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Mon, 21 Jul 2008 13:15:19 +0000 (13:15 +0000)
skins/Modern.php

index 3f5ce5e..1dc28df 100644 (file)
@@ -48,8 +48,9 @@ class ModernTemplate extends QuickTemplate {
         * @access private
         */
        function execute() {
-               global $wgUser;
+               global $wgUser, $wgRequest;
                $this->skin = $skin = $wgUser->getSkin();
+               $action = $wgRequest->getText( 'action' );
 
                // Suppress warnings to prevent notices about missing indexes in $this->data
                wfSuppressWarnings();