From f109074bfeec0ba7d1b1e59da948dc13e88ddb71 Mon Sep 17 00:00:00 2001 From: Ori Livneh Date: Tue, 16 Dec 2014 21:44:39 -0800 Subject: [PATCH] Simplify JsonContent::beautifyJSON() Change-Id: I406d5c2967615f818c9ac42abc19ab8a49e1da8d --- includes/content/JsonContent.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.20.1