From: Brion Vibber Date: Mon, 26 Jan 2009 21:53:19 +0000 (+0000) Subject: Revert r45343 "(bug 16659) Prettify permalinks. Just use ?oldid=x" for now. X-Git-Tag: 1.31.0-rc.0~43227 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/ajouter.php?a=commitdiff_plain;h=0eefca0d874d506f2523b83fb42736ec5d5abaec;p=lhc%2Fweb%2Fwiklou.git Revert r45343 "(bug 16659) Prettify permalinks. Just use ?oldid=x" for now. This hasn't been very popular so far; pulling it back pending further discussion (as on bug) --- diff --git a/includes/SkinTemplate.php b/includes/SkinTemplate.php index 1785fa0f00..59596718e8 100644 --- a/includes/SkinTemplate.php +++ b/includes/SkinTemplate.php @@ -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" ) ); }