From: Platonides Date: Sun, 15 May 2011 12:36:21 +0000 (+0000) Subject: Follow up r88053. This was trying to throw the return value of a function called... X-Git-Tag: 1.31.0-rc.0~30158 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmes_infos.php?a=commitdiff_plain;h=28e6771032d115ff68c721c525c8d4d9b4e63794;p=lhc%2Fweb%2Fwiklou.git Follow up r88053. This was trying to throw the return value of a function called MWException. --- diff --git a/includes/resourceloader/ResourceLoader.php b/includes/resourceloader/ResourceLoader.php index 6054791f0b..ec112645a0 100644 --- a/includes/resourceloader/ResourceLoader.php +++ b/includes/resourceloader/ResourceLoader.php @@ -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',