Index: trunk/phase3/includes/api/ApiResult.php |
— | — | @@ -278,11 +278,11 @@ |
279 | 279 | array_walk_recursive($this->mData, array('ApiResult', 'cleanUp_helper')); |
280 | 280 | } |
281 | 281 | |
282 | | - private static function cleanUp_helper($s) |
| 282 | + private static function cleanUp_helper(&$s) |
283 | 283 | { |
284 | 284 | if(!is_string($s)) |
285 | | - return $s; |
286 | | - return UtfNormal::cleanUp($s); |
| 285 | + return; |
| 286 | + $s = UtfNormal::cleanUp($s); |
287 | 287 | } |
288 | 288 | |
289 | 289 | public function execute() { |
Index: trunk/phase3/includes/api/ApiMain.php |
— | — | @@ -442,7 +442,7 @@ |
443 | 443 | * Print results using the current printer |
444 | 444 | */ |
445 | 445 | protected function printResult($isError) { |
446 | | - $this->getResult()->cleanupUTF8(); |
| 446 | + $this->getResult()->cleanUpUTF8(); |
447 | 447 | $printer = $this->mPrinter; |
448 | 448 | $printer->profileIn(); |
449 | 449 | |