Index: trunk/phase3/includes/resourceloader/ResourceLoader.php |
— | — | @@ -574,7 +574,7 @@ |
575 | 575 | if ( is_string( $scripts ) ) { |
576 | 576 | $scripts = new XmlJsCode( "function( $ ) {{$scripts}}" ); |
577 | 577 | } else if ( !is_array( $scripts ) ) { |
578 | | - throw MWException( 'Invalid scripts error. Array of URLs or string of code expected.' ); |
| 578 | + throw new MWException( 'Invalid scripts error. Array of URLs or string of code expected.' ); |
579 | 579 | } |
580 | 580 | return Xml::encodeJsCall( |
581 | 581 | 'mw.loader.implement', |