r83647 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r83646‎ | r83647 | r83648 >
Date:12:02, 10 March 2011
Author:btongminh
Status:reverted
Tags:
Comment:
Add wfObjectToArray to json_decode to ensure that the return value is an array
Modified paths:
  • /trunk/phase3/includes/json/FormatJson.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/json/FormatJson.php
@@ -58,7 +58,7 @@
5959 $jsonDec = $json->decode( $value );
6060 return $jsonDec;
6161 } else {
62 - return json_decode( $value, $assoc );
 62+ return wfObjectToArray( json_decode( $value, $assoc ) );
6363 }
6464 }
6565

Follow-up revisions

RevisionCommit summaryAuthorDate
r83648Revert r83647, was based on the inability to read the function signaturebtongminh12:04, 10 March 2011

Status & tagging log