X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Fcontent%2FJsonContent.php;h=a1f199de2fab5d02dd673efc453c380a1942dfd6;hb=22f137ced85fe4841c71ba6c2b9faf6199b5a539;hp=0f8a9a945a9c670b5a76bc5e782c312002f358cc;hpb=04390e58fe1302824a0b586a21f6b09f8f64780d;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/content/JsonContent.php b/includes/content/JsonContent.php index 0f8a9a945a..a1f199de2f 100644 --- a/includes/content/JsonContent.php +++ b/includes/content/JsonContent.php @@ -28,17 +28,6 @@ class JsonContent extends TextContent { parent::__construct( $text, $modelId ); } - /** - * Decodes the JSON into a PHP associative array. - * - * @deprecated since 1.25 Use getData instead. - * @return array|null - */ - public function getJsonData() { - wfDeprecated( __METHOD__, '1.25' ); - return FormatJson::decode( $this->getText(), true ); - } - /** * Decodes the JSON string. * @@ -231,7 +220,7 @@ class JsonContent extends TextContent { return Html::rawElement( 'td', [], $this->arrayTable( $val ) ); } - return Html::element( 'td', [ 'class' => 'value' ], $this->primitiveValue( $val ) ); + return Html::element( 'td', [ 'class' => 'mw-json-value' ], $this->primitiveValue( $val ) ); } /**