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

       Web browser: ---
             Bug #: 30142
           Summary: Don't manually build URLs
           Product: MediaWiki extensions
           Version: any
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: MobileFrontend
        AssignedTo: wikibugs-l@lists.wikimedia.org
        ReportedBy: s...@reedyboy.net
                CC: prei...@wikimedia.org, tf...@wikimedia.org
    Classification: Unclassified


MW has wrapper functions for querystring building etc

It saves having to do stuff like

$delimiter = ( strpos( $mobileViewUrl, "?" ) !== false ) ? "&" : "?";

And also makes sure that all parameters are properly encoded

As per a request on #wikimedia-tech where this was giving validation errors

<li id="mobileview"><a
href='/w/index.php?title=Datei%3ALogo_African_Pygmy_Goat.png&action=edit&useFormat=mobile'>Mobile
View</a></li>

r93561

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- 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
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to