http://www.mediawiki.org/wiki/Special:Code/MediaWiki/88166

Revision: 88166
Author:   platonides
Date:     2011-05-15 12:36:21 +0000 (Sun, 15 May 2011)
Log Message:
-----------
Follow up r88053. This was trying to throw the return value of a function 
called MWException.

Modified Paths:
--------------
    trunk/phase3/includes/resourceloader/ResourceLoader.php

Modified: trunk/phase3/includes/resourceloader/ResourceLoader.php
===================================================================
--- trunk/phase3/includes/resourceloader/ResourceLoader.php     2011-05-15 
12:35:50 UTC (rev 88165)
+++ trunk/phase3/includes/resourceloader/ResourceLoader.php     2011-05-15 
12:36:21 UTC (rev 88166)
@@ -574,7 +574,7 @@
                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', 


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to