From: Rob Church Date: Wed, 11 Jul 2007 07:29:53 +0000 (+0000) Subject: Fix regression in URL-encoding from r23985 X-Git-Tag: 1.31.0-rc.0~52151 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmes_infos.php?a=commitdiff_plain;h=41c9a5550f6a7b356ff7a56712916ff5a5519b58;p=lhc%2Fweb%2Fwiklou.git Fix regression in URL-encoding from r23985 --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 55dd1a1388..01ef77ef10 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -131,7 +131,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 9936) Per-edit suppression of preview-on-first edit with "preview=no" * Allow showing a one-off preview on first edit with "preview=yes" * (bug 9151) Remove timed redirects on "Return to X" pages for accessibility. -* Add link to Special:Log into MonoBook toolbox +* Link to user logs in toolbox when viewing a user page == Bugfixes since 1.10 == diff --git a/includes/SkinTemplate.php b/includes/SkinTemplate.php index 6c2094fe9c..6ce4060640 100644 --- a/includes/SkinTemplate.php +++ b/includes/SkinTemplate.php @@ -895,13 +895,15 @@ class SkinTemplate extends Skin { $nav_urls['contributions'] = array( 'href' => self::makeSpecialUrlSubpage( 'Contributions', $this->mTitle->getText() ) ); + if( $id ) { $logPage = SpecialPage::getTitleFor( 'Log' ); - $nav_urls['log'] = array( 'href' => $logPage->getLocalURL( "user={$this->mTitle->getText()}" ) ); + $nav_urls['log'] = array( 'href' => $logPage->getLocalUrl( 'user=' + . $this->mTitle->getPartialUrl() ) ); } else { $nav_urls['log'] = false; } - + if ( $wgUser->isAllowed( 'block' ) ) { $nav_urls['blockip'] = array( 'href' => self::makeSpecialUrlSubpage( 'Blockip', $this->mTitle->getText() )