From: raymond Date: Sun, 2 Sep 2012 21:29:36 +0000 (+0200) Subject: Make Special:Log link pretty in navigation toolbox X-Git-Tag: 1.31.0-rc.0~22456^2 X-Git-Url: http://git.cyclocoop.org/%22.%24redirect_annul.%22?a=commitdiff_plain;h=5b11c67ff240bb13856d555d6eaf3453cfb4dad0;p=lhc%2Fweb%2Fwiklou.git Make Special:Log link pretty in navigation toolbox Change-Id: Ie1ee210dd99a8ae8225dab3040e06d422a122f22 Special:Log/Username works since a few MediaWiki releases --- diff --git a/includes/SkinTemplate.php b/includes/SkinTemplate.php index d3502e92ff..4ebbc61f67 100644 --- a/includes/SkinTemplate.php +++ b/includes/SkinTemplate.php @@ -1181,9 +1181,8 @@ class SkinTemplate extends Skin { 'href' => self::makeSpecialUrlSubpage( 'Contributions', $rootUser ) ); - $logPage = SpecialPage::getTitleFor( 'Log' ); $nav_urls['log'] = array( - 'href' => $logPage->getLocalUrl( array( 'user' => $rootUser ) ) + 'href' => self::makeSpecialUrlSubpage( 'Log', $rootUser ) ); if ( $this->getUser()->isAllowed( 'block' ) ) {