Thread:Extension talk:MobileFrontend/Suggestion for more stable device detection using Extension:MobileDetect/reply (3)

When using MobileFrontend 0.5.77 (for Mediawiki 1.18), MobileContext.php doesn't exist. In this case, you can edit MobileFrontend.php : below In the lines : if ( self::$useFormat === 'mobile' || 			self::$useFormat === 'mobile-wap' || 			           !empty( $xDevice ) ) {

Replace !empty( $xDevice ) with $mobile === true You also need to declare $mobile in the global vars, at the beginning of the definition of the beforePageDisplayHTML function. Too bad it's necessary to use 2 extensions to do that...