Follow up r88053. This was trying to throw the return value of a function called...
authorPlatonides <platonides@users.mediawiki.org>
Sun, 15 May 2011 12:36:21 +0000 (12:36 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Sun, 15 May 2011 12:36:21 +0000 (12:36 +0000)
includes/resourceloader/ResourceLoader.php

index 6054791..ec11264 100644 (file)
@@ -574,7 +574,7 @@ class ResourceLoader {
                if ( is_string( $scripts ) ) {
                        $scripts = new XmlJsCode( "function( $ ) {{$scripts}}" );
                } else if ( !is_array( $scripts ) ) {
-                       throw MWException( 'Invalid scripts error. Array of URLs or string of code expected.' );
+                       throw new MWException( 'Invalid scripts error. Array of URLs or string of code expected.' );
                }
                return Xml::encodeJsCall( 
                        'mw.loader.implement',