https://bugzilla.wikimedia.org/show_bug.cgi?id=62436

            Bug ID: 62436
           Summary: SkinTemplate template key 'mobileview' value is not
                    initialized for desktop versions of special pages.
           Product: MobileFrontend
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: beta
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected],
                    [email protected], [email protected]
       Web browser: ---
   Mobile Platform: ---

I developed custom Vector-derived skin and made few tweaks to Minerva mobile
skin. In Vector-derived skin I use $this->html('mobileview') in skin footer. It
properly generates &mobileaction=toggle_view_mobile for "ordinary" pages but is
not initialized for special pages. The cause is in
MobileFrontendHooks::onSkinTemplateOutputPageBeforeExec hook, which skips
generation of template variable for special pages:

if ( !$isSpecial && !$context->isBlacklistedPage() ) {
...
}

Is it impossible to switch special pages to Minerva skin or is that a bug? If
that's impossible I'd tell the customer that the mobile switch link will be
unavailable at special pages.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to