r96641 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r96640‎ | r96641 | r96642 >
Date:01:25, 9 September 2011
Author:preilly
Status:ok
Tags:
Comment:
fix for relative link for random page
Modified paths:
  • /trunk/extensions/MobileFrontend/MobileFrontend.php (modified) (history)

Diff [purge]

Index: trunk/extensions/MobileFrontend/MobileFrontend.php
@@ -65,7 +65,7 @@
6666 );
6767
6868 class ExtMobileFrontend {
69 - const VERSION = '0.5.61';
 69+ const VERSION = '0.5.62';
7070
7171 /**
7272 * @var DOMDocument
@@ -227,7 +227,7 @@
228228 self::$code = $wgContLang->getCode();
229229
230230 self::$mainPageUrl = Title::newMainPage()->getLocalUrl();
231 - self::$randomPageUrl = SpecialPage::getTitleFor( 'Randompage' )->getLocalUrl();
 231+ self::$randomPageUrl = $this->getRelativeURL( SpecialPage::getTitleFor( 'Randompage' )->getLocalUrl() );
232232 wfProfileOut( __METHOD__ );
233233 }
234234

Follow-up revisions

RevisionCommit summaryAuthorDate
r96642mft r96641preilly01:26, 9 September 2011

Status & tagging log