r83584 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r83583‎ | r83584 | r83585 >
Date:12:42, 9 March 2011
Author:catrope
Status:ok
Tags:
Comment:
Fix syntax error in r83579
Modified paths:
  • /branches/wmf/1.17wmf1/extensions/WikimediaMobile/MobileRedirect.js (modified) (history)
  • /branches/wmf/1.17wmf1/extensions/WikimediaMobile/WikimediaMobile.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.17wmf1/extensions/WikimediaMobile/WikimediaMobile.php
@@ -19,7 +19,7 @@
2020 /**
2121 * Increment this when the JS file changes
2222 */
23 -$wgWikimediaMobileVersion = '5';
 23+$wgWikimediaMobileVersion = '6';
2424
2525 /**
2626 * The base URL of the mobile gateway
Index: branches/wmf/1.17wmf1/extensions/WikimediaMobile/MobileRedirect.js
@@ -14,7 +14,7 @@
1515 && (wgAction == "view")) // Don't redirect URLs that aren't simple page views
1616 */
1717 && (!document.getElementsByClassName || document.getElementsByClassName( 'ns--1' ).length == 0)
18 - && (document.location.href.indexOf( 'action=' ) == -1 || document.location.href.indexOf( 'action=view' ) != -1 )
 18+ && (document.location.href.indexOf( 'action=' ) == -1 || document.location.href.indexOf( 'action=view' ) != -1 ))
1919 {
2020
2121 // If we've made it here, then we are going ahead with the redirect

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r835791.17wmf1: Live hack for mobile redirect script: wg* variables aren't availabl...catrope11:54, 9 March 2011

Status & tagging log