Index: trunk/phase3/includes/resourceloader/ResourceLoader.php |
— | — | @@ -409,6 +409,10 @@ |
410 | 410 | public function makeModuleResponse( ResourceLoaderContext $context, |
411 | 411 | array $modules, $missing = array() ) |
412 | 412 | { |
| 413 | + if ( $modules === array() && $missing === array() ) { |
| 414 | + return '/* No modules requested. Max made me put this here */'; |
| 415 | + } |
| 416 | + |
413 | 417 | // Pre-fetch blobs |
414 | 418 | if ( $context->shouldIncludeMessages() ) { |
415 | 419 | $blobs = MessageBlobStore::get( $this, $modules, $context->getLanguage() ); |