X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fcontent%2FJsonContentHandler.php;h=edb21f682c3e384abd2770d06f35d4ef5caab639;hb=1dfd59a4e3d4f9c20bbe584bd1ad7a622c22f823;hp=f97eaa44456c7d981ab710a3c5be620a3d37897c;hpb=3071f1fad720f1773864621158a0c59b73124896;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/content/JsonContentHandler.php b/includes/content/JsonContentHandler.php index f97eaa4445..edb21f682c 100644 --- a/includes/content/JsonContentHandler.php +++ b/includes/content/JsonContentHandler.php @@ -37,6 +37,11 @@ class JsonContentHandler extends CodeContentHandler { * @return string */ protected function getContentClass() { - return 'JsonContent'; + return JsonContent::class; + } + + public function makeEmptyContent() { + $class = $this->getContentClass(); + return new $class( '{}' ); } }