r94596 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r94595‎ | r94596 | r94597 >
Date:00:41, 16 August 2011
Author:preilly
Status:ok
Tags:
Comment:
change the hook that we use in order for things to work on all special pages
Modified paths:
  • /trunk/extensions/MobileFrontend/MobileFrontend.php (modified) (history)

Diff [purge]

Index: trunk/extensions/MobileFrontend/MobileFrontend.php
@@ -44,12 +44,12 @@
4545
4646 $wgExtMobileFrontend = new ExtMobileFrontend();
4747
48 -$wgHooks['OutputPageBeforeHTML'][] = array( &$wgExtMobileFrontend, 'onOutputPageBeforeHTML' );
 48+$wgHooks['BeforePageDisplay'][] = array( &$wgExtMobileFrontend, 'beforePageDisplayHTML' );
4949
5050 $wgHooks['SkinTemplateOutputPageBeforeExec'][] = array( &$wgExtMobileFrontend, 'addMobileFooter' );
5151
5252 class ExtMobileFrontend {
53 - const VERSION = '0.5.26';
 53+ const VERSION = '0.5.27';
5454
5555 /**
5656 * @var DOMDocument
@@ -175,7 +175,7 @@
176176 * @param $text String
177177 * @return bool
178178 */
179 - public function onOutputPageBeforeHTML( &$out, &$text ) {
 179+ public function beforePageDisplayHTML( &$out, &$text ) {
180180 global $wgContLang, $wgRequest, $wgMemc, $wgUser;
181181
182182 // The title

Follow-up revisions

RevisionCommit summaryAuthorDate
r94598mft r94596preilly00:42, 16 August 2011

Status & tagging log