Index: trunk/extensions/MobileFrontend/MobileFrontend.php |
— | — | @@ -44,12 +44,12 @@ |
45 | 45 | |
46 | 46 | $wgExtMobileFrontend = new ExtMobileFrontend(); |
47 | 47 | |
48 | | -$wgHooks['OutputPageBeforeHTML'][] = array( &$wgExtMobileFrontend, 'onOutputPageBeforeHTML' ); |
| 48 | +$wgHooks['BeforePageDisplay'][] = array( &$wgExtMobileFrontend, 'beforePageDisplayHTML' ); |
49 | 49 | |
50 | 50 | $wgHooks['SkinTemplateOutputPageBeforeExec'][] = array( &$wgExtMobileFrontend, 'addMobileFooter' ); |
51 | 51 | |
52 | 52 | class ExtMobileFrontend { |
53 | | - const VERSION = '0.5.26'; |
| 53 | + const VERSION = '0.5.27'; |
54 | 54 | |
55 | 55 | /** |
56 | 56 | * @var DOMDocument |
— | — | @@ -175,7 +175,7 @@ |
176 | 176 | * @param $text String |
177 | 177 | * @return bool |
178 | 178 | */ |
179 | | - public function onOutputPageBeforeHTML( &$out, &$text ) { |
| 179 | + public function beforePageDisplayHTML( &$out, &$text ) { |
180 | 180 | global $wgContLang, $wgRequest, $wgMemc, $wgUser; |
181 | 181 | |
182 | 182 | // The title |