From: Ori Livneh Date: Wed, 17 Dec 2014 05:44:39 +0000 (-0800) Subject: Simplify JsonContent::beautifyJSON() X-Git-Tag: 1.31.0-rc.0~12938 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/ajouter.php?a=commitdiff_plain;h=f109074bfeec0ba7d1b1e59da948dc13e88ddb71;p=lhc%2Fweb%2Fwiklou.git Simplify JsonContent::beautifyJSON() Change-Id: I406d5c2967615f818c9ac42abc19ab8a49e1da8d --- diff --git a/includes/content/JsonContent.php b/includes/content/JsonContent.php index b36827c507..1ce25c2dba 100644 --- a/includes/content/JsonContent.php +++ b/includes/content/JsonContent.php @@ -39,7 +39,7 @@ class JsonContent extends TextContent { * @return bool|null|string */ public function beautifyJSON() { - $decoded = FormatJson::decode( $this->getNativeData(), true ); + $decoded = $this->getJsonData(); if ( !is_array( $decoded ) ) { return null; }