r93592 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r93591‎ | r93592 | r93593 >
Date:16:02, 31 July 2011
Author:hartman
Status:ok
Tags:
Comment:
Use local relative uri's for home/mainpage
Modified paths:
  • /trunk/extensions/MobileFrontend/MobileFrontend.php (modified) (history)

Diff [purge]

Index: trunk/extensions/MobileFrontend/MobileFrontend.php
@@ -147,8 +147,8 @@
148148
149149 self::$disableImages = $wgRequest->getText( 'disableImages', 0 );
150150
151 - self::$mainPageUrl = Title::newMainPage()->getFullUrl();
152 - self::$randomPageUrl = SpecialPage::getTitleFor( 'Randompage' )->getFullUrl();
 151+ self::$mainPageUrl = Title::newMainPage()->getLocalUrl();
 152+ self::$randomPageUrl = SpecialPage::getTitleFor( 'Randompage' )->getLocalUrl();
153153
154154 $userAgent = $_SERVER['HTTP_USER_AGENT'];
155155 $uAmd5 = md5($userAgent);

Status & tagging log