From: Bartosz DziewoƄski Date: Wed, 27 Sep 2017 21:41:47 +0000 (+0200) Subject: Consistently preserve anchors in the title specified in 'mainpage' message X-Git-Tag: 1.31.0-rc.0~1931^2 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/?a=commitdiff_plain;h=d52830947d12678f3f4f28e5fbcd65759b9d1de2;p=lhc%2Fweb%2Fwiklou.git Consistently preserve anchors in the title specified in 'mainpage' message When 'mainpage' was used in the 'sidebar' message, the anchor would be preserved (code in Skin::addToSidebarPlain() uses Title::getLinkURL()). When 'mainpage' was used on its own in Skin::makeMainPageUrl() (which is used in SkinTemplate::buildNavUrls(), and many skins use that data to generate the logo link), it would not be preserved (the code used Title::getLocalURL()). Bug: T176583 Change-Id: Icc4895c08089caaa06e37ce765819829b90de0ff --- diff --git a/includes/skins/Skin.php b/includes/skins/Skin.php index 8fb0d1c091..167b49d9f3 100644 --- a/includes/skins/Skin.php +++ b/includes/skins/Skin.php @@ -1095,7 +1095,7 @@ abstract class Skin extends ContextSource { $title = Title::newMainPage(); self::checkTitle( $title, '' ); - return $title->getLocalURL( $urlaction ); + return $title->getLinkURL( $urlaction ); } /**