Index: branches/resourceloader/phase3/includes/OutputPage.php |
— | — | @@ -2183,9 +2183,12 @@ |
2184 | 2184 | 'modules' => implode( '|', $modules ), |
2185 | 2185 | 'user' => $wgUser->isLoggedIn(), |
2186 | 2186 | 'lang' => $wgLang->getCode(), |
2187 | | - 'debug' => ( $wgRequest->getVal( 'debug' ) === 'true' ), |
| 2187 | + 'debug' => ( |
| 2188 | + $wgRequest->getVal( 'debug' ) === 'true' || |
| 2189 | + ( $wgRequest->getVal( 'debug' ) !== 'false' && $wgRequest->getBool( 'debug' ) ) |
| 2190 | + ), |
2188 | 2191 | ); |
2189 | | - return Html::linkedScript( "{$wgScriptPath}/load.php?" . http_build_query( $query ) ); |
| 2192 | + return Html::linkedScript( wfAppendQuery( $wgScriptPath . 'load.php', $query ); |
2190 | 2193 | } |
2191 | 2194 | |
2192 | 2195 | /** |