http://www.mediawiki.org/wiki/Special:Code/MediaWiki/89553
Revision: 89553
Author: catrope
Date: 2011-06-06 09:41:33 +0000 (Mon, 06 Jun 2011)
Log Message:
-----------
Fix the non-PEAR alternative for Services_JSON_Error to be less useless. bug
29278 shows an error related to this class not being stringifiable
Modified Paths:
--------------
trunk/phase3/includes/json/Services_JSON.php
Modified: trunk/phase3/includes/json/Services_JSON.php
===================================================================
--- trunk/phase3/includes/json/Services_JSON.php 2011-06-06 09:40:45 UTC
(rev 89552)
+++ trunk/phase3/includes/json/Services_JSON.php 2011-06-06 09:41:33 UTC
(rev 89553)
@@ -870,7 +870,12 @@
function Services_JSON_Error($message = 'unknown error', $code
= null,
$mode = null, $options = null,
$userinfo = null)
{
-
+ $this->message = $message;
}
+
+ function __toString()
+ {
+ return $this->message;
+ }
}
}
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs