r84188 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r84187‎ | r84188 | r84189 >
Date:18:10, 17 March 2011
Author:hcatlin
Status:ok
Tags:
Comment:
WikimediaMobile Redirect: Integrating changes to how the script tag is inserted into the page in mw1.7
Modified paths:
  • /trunk/extensions/WikimediaMobile/WikimediaMobile.php (modified) (history)

Diff [purge]

Index: trunk/extensions/WikimediaMobile/WikimediaMobile.php
@@ -19,7 +19,7 @@
2020 /**
2121 * Increment this when the JS file changes
2222 */
23 -$wgWikimediaMobileVersion = '4';
 23+$wgWikimediaMobileVersion = '6';
2424
2525 /**
2626 * The base URL of the mobile gateway
@@ -32,8 +32,10 @@
3333
3434 function wfWikimediaMobileAddJs( &$outputPage, &$skin ) {
3535 global $wgOut, $wgExtensionAssetsPath, $wgWikimediaMobileVersion;
36 -
37 - $wgOut->addScript( Html::linkedScript(
 36+
 37+ # Live hack to put mobile redirect script in <head> --catrope Mar 5, 2011
 38+ $wgOut->addHeadItem( 'mobileredirect', Html::linkedScript(
 39+ #$wgOut->addScript( Html::linkedScript(
3840 "$wgExtensionAssetsPath/WikimediaMobile/MobileRedirect.js?$wgWikimediaMobileVersion"
3941 ) );
4042 return true;
@@ -44,4 +46,3 @@
4547 $vars['wgWikimediaMobileUrl'] = $wgWikimediaMobileUrl;
4648 return true;
4749 }
48 -

Follow-up revisions

RevisionCommit summaryAuthorDate
r84189WikimediaMobile Redirect: Removing comments mentioning that its a live fix. C...hcatlin18:18, 17 March 2011

Status & tagging log