https://bugzilla.wikimedia.org/show_bug.cgi?id=43255
--- Comment #8 from Arthur Richards <[email protected]> --- Is that content being served using the same hook that CentralAuth uses to display its stuff (hook UserLoginComplete, I believe)? If so, I can think of a way to hack around it - although I'm not sure it's any less pretty than adding nomobile class to the content container. To answer Matt's question, no there's no global variable that indicates this per se, but there is some MobileFrontend magic you can hook into to determine whether or not the mobile view should be getting displayed. Something like: if ( class_exists( 'MobileContext' ) ){ $context = MobileContext::singleton(); if ( $context->shouldDisplayMobileView() ) { //don't display content } } Someday this kind of functionality will be built into MW core, but until then, this is probably the easiest/cleanest thing to do. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
