http://www.mediawiki.org/wiki/Special:Code/MediaWiki/70582

Revision: 70582
Author:   tparscal
Date:     2010-08-06 18:55:35 +0000 (Fri, 06 Aug 2010)

Log Message:
-----------
Using wfAppendQuery instead of http_build_query, also tried to support 'true' 
and 'false' as well as 1 and 0 - I think we need a better strategy, these 
conversions are getting complex and confusing.

Modified Paths:
--------------
    branches/resourceloader/phase3/includes/OutputPage.php

Modified: branches/resourceloader/phase3/includes/OutputPage.php
===================================================================
--- branches/resourceloader/phase3/includes/OutputPage.php      2010-08-06 
18:51:23 UTC (rev 70581)
+++ branches/resourceloader/phase3/includes/OutputPage.php      2010-08-06 
18:55:35 UTC (rev 70582)
@@ -2183,9 +2183,12 @@
                        'modules' => implode( '|', $modules ),
                        'user' => $wgUser->isLoggedIn(),
                        'lang' => $wgLang->getCode(),
-                       'debug' => ( $wgRequest->getVal( 'debug' ) === 'true' ),
+                       'debug' => (
+                               $wgRequest->getVal( 'debug' ) === 'true' ||
+                               ( $wgRequest->getVal( 'debug' ) !== 'false' && 
$wgRequest->getBool( 'debug' ) )
+                       ),
                );
-               return Html::linkedScript( "{$wgScriptPath}/load.php?" . 
http_build_query( $query ) );
+               return Html::linkedScript( wfAppendQuery( $wgScriptPath . 
'load.php', $query );
        }
        
        /**



_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to