X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fcontent%2FJsonContentHandler.php;h=edb21f682c3e384abd2770d06f35d4ef5caab639;hb=6624df922627d1376b28f024fe189ab522f6a13a;hp=f97eaa44456c7d981ab710a3c5be620a3d37897c;hpb=b5906606e1aa1a795231fb813b766818b1dd6c25;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( '{}' ); } }