http://www.mediawiki.org/wiki/Special:Code/MediaWiki/90703
Revision: 90703
Author: salvatoreingala
Date: 2011-06-24 09:46:52 +0000 (Fri, 24 Jun 2011)
Log Message:
-----------
Reverts r90283
Modified Paths:
--------------
branches/salvatoreingala/Gadgets/api/ApiGetGadgetPrefs.php
Modified: branches/salvatoreingala/Gadgets/api/ApiGetGadgetPrefs.php
===================================================================
--- branches/salvatoreingala/Gadgets/api/ApiGetGadgetPrefs.php 2011-06-24
09:40:45 UTC (rev 90702)
+++ branches/salvatoreingala/Gadgets/api/ApiGetGadgetPrefs.php 2011-06-24
09:46:52 UTC (rev 90703)
@@ -49,7 +49,7 @@
$userPrefs = $gadget->getPrefs();
if ( $userPrefs === null ) {
- $this->dieUsage( 'An unexpected condition happened,
please report this to the developers', 'unexpectederror' );
+ throw new MWException( __METHOD__ . ': $userPrefs
should not be null.' );
}
//Add user preferences to preference description
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs