From 41c9a5550f6a7b356ff7a56712916ff5a5519b58 Mon Sep 17 00:00:00 2001 From: Rob Church Date: Wed, 11 Jul 2007 07:29:53 +0000 Subject: [PATCH] Fix regression in URL-encoding from r23985 --- RELEASE-NOTES | 2 +- includes/SkinTemplate.php | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) 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() ) -- 2.20.1