Index: trunk/phase3/includes/OutputPage.php |
— | — | @@ -2304,9 +2304,13 @@ |
2305 | 2305 | } |
2306 | 2306 | // TODO: Should this be a static function of ResourceLoader instead? |
2307 | 2307 | // TODO: Divide off modules starting with "user", and add the user parameter to them |
| 2308 | + // Determine whether we're in debug mode |
| 2309 | + // Order of priority is 1) request param, 2) cookie, 3) $wg setting |
| 2310 | + $debug = $wgRequest->getFuzzyBool( 'debug', |
| 2311 | + $wgRequest->getCookie( 'resourceLoaderModule', '', $wgResourceLoaderDebug ) ); |
2308 | 2312 | $query = array( |
2309 | 2313 | 'lang' => $wgLang->getCode(), |
2310 | | - 'debug' => $wgRequest->getFuzzyBool( 'debug', $wgResourceLoaderDebug ) ? 'true' : 'false', |
| 2314 | + 'debug' => $debug ? 'true' : 'false', |
2311 | 2315 | 'skin' => $wgUser->getSkin()->getSkinName(), |
2312 | 2316 | 'only' => $only, |
2313 | 2317 | ); |