Revert r45343 "(bug 16659) Prettify permalinks. Just use ?oldid=x" for now.
authorBrion Vibber <brion@users.mediawiki.org>
Mon, 26 Jan 2009 21:53:19 +0000 (21:53 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Mon, 26 Jan 2009 21:53:19 +0000 (21:53 +0000)
This hasn't been very popular so far; pulling it back pending further discussion (as on bug)

includes/SkinTemplate.php

index 1785fa0..5959671 100644 (file)
@@ -880,10 +880,9 @@ class SkinTemplate extends Skin {
 
                        // Also add a "permalink" while we're at it
                        if ( $this->mRevisionId ) {
-                               global $wgScript;
                                $nav_urls['permalink'] = array(
                                        'text' => wfMsg( 'permalink' ),
-                                       'href' => "{$wgScript}?oldid={$this->mRevisionId}"
+                                       'href' => $wgTitle->getLocalURL( "oldid=$this->mRevisionId" )
                                );
                        }