r83313 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r83312‎ | r83313 | r83314 >
Date:19:24, 5 March 2011
Author:catrope
Status:ok
Tags:
Comment:
1.17wmf1: Live-hack WikimediaMobile to put the mobile redirect script back in the <head>
Modified paths:
  • /branches/wmf/1.17wmf1/extensions/WikimediaMobile/WikimediaMobile.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.17wmf1/extensions/WikimediaMobile/WikimediaMobile.php
@@ -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;

Status & tagging log