dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
696d202
)
Fix the non-PEAR alternative for Services_JSON_Error to be less useless. bug 29278...
author
Roan Kattouw
<catrope@users.mediawiki.org>
Mon, 6 Jun 2011 09:41:33 +0000
(09:41 +0000)
committer
Roan Kattouw
<catrope@users.mediawiki.org>
Mon, 6 Jun 2011 09:41:33 +0000
(09:41 +0000)
includes/json/Services_JSON.php
patch
|
blob
|
history
diff --git
a/includes/json/Services_JSON.php
b/includes/json/Services_JSON.php
index
5261a6a
..
29cc361
100644
(file)
--- a/
includes/json/Services_JSON.php
+++ b/
includes/json/Services_JSON.php
@@
-870,7
+870,12
@@
if (class_exists('PEAR_Error')) {
function Services_JSON_Error($message = 'unknown error', $code = null,
$mode = null, $options = null, $userinfo = null)
{
-
+ $this->message = $message;
+ }
+
+ function __toString()
+ {
+ return $this->message;
}
}
}