Index: branches/resourceloader/phase3/includes/OutputPage.php |
— | — | @@ -2279,8 +2279,8 @@ |
2280 | 2280 | |
2281 | 2281 | return $ret; |
2282 | 2282 | } |
2283 | | - |
2284 | | - static function makeResourceLoaderLink( $skin, $modules, $only = null ) { |
| 2283 | + |
| 2284 | + static function makeResourceLoaderLink( $skin, $modules, $only ) { |
2285 | 2285 | global $wgUser, $wgLang, $wgRequest, $wgScriptPath; |
2286 | 2286 | // TODO: Should this be a static function of ResourceLoader instead? |
2287 | 2287 | $query = array( |
— | — | @@ -2288,10 +2288,8 @@ |
2289 | 2289 | 'lang' => $wgLang->getCode(), |
2290 | 2290 | 'debug' => $wgRequest->getBool( 'debug' ) && $wgRequest->getVal( 'debug' ) !== 'false', |
2291 | 2291 | 'skin' => $wgUser->getSkin()->getSkinName(), |
| 2292 | + 'only' => $only, |
2292 | 2293 | ); |
2293 | | - if ( isset( $only ) ) { |
2294 | | - $query['only'] = $only; |
2295 | | - } |
2296 | 2294 | // Automatically select style/script elements |
2297 | 2295 | if ( $only === 'styles' ) { |
2298 | 2296 | return Html::linkedStyle( wfAppendQuery( $wgScriptPath . '/load.php', $query ) ); |