Simplify JsonContent::beautifyJSON()
authorOri Livneh <ori@wikimedia.org>
Wed, 17 Dec 2014 05:44:39 +0000 (21:44 -0800)
committerOri Livneh <ori@wikimedia.org>
Wed, 17 Dec 2014 05:45:49 +0000 (21:45 -0800)
Change-Id: I406d5c2967615f818c9ac42abc19ab8a49e1da8d

includes/content/JsonContent.php

index b36827c..1ce25c2 100644 (file)
@@ -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;
                }