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:
df1c7e2
)
* 3983#c3983 array casting does not work so well on json_decode arrays... object2arra...
author
Michael Dale
<dale@users.mediawiki.org>
Thu, 10 Sep 2009 19:24:56 +0000
(19:24 +0000)
committer
Michael Dale
<dale@users.mediawiki.org>
Thu, 10 Sep 2009 19:24:56 +0000
(19:24 +0000)
includes/json/FormatJson.php
patch
|
blob
|
history
diff --git
a/includes/json/FormatJson.php
b/includes/json/FormatJson.php
index
024148f
..
3fbb21b
100644
(file)
--- a/
includes/json/FormatJson.php
+++ b/
includes/json/FormatJson.php
@@
-23,7
+23,7
@@
class FormatJson{
$json = new Services_JSON();
$jsonDec = $json->decode($value);
if($assoc)
- $jsonDec =
(array) $jsonDec
;
+ $jsonDec =
wfObjectToArray( $jsonDec )
;
return $jsonDec;
} else {
return json_decode($value, $assoc);