X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fcontent%2FJsonContentHandler.php;h=edb21f682c3e384abd2770d06f35d4ef5caab639;hb=10b62d61bc2b069c7c53999381ef7ee52f294975;hp=eb1c67d5d2d11725bf9eff09c1f0acf4fdd3824b;hpb=a303296f2730d6279a249bde77f3e0b9b42e494f;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/content/JsonContentHandler.php b/includes/content/JsonContentHandler.php index eb1c67d5d2..edb21f682c 100644 --- a/includes/content/JsonContentHandler.php +++ b/includes/content/JsonContentHandler.php @@ -39,4 +39,9 @@ class JsonContentHandler extends CodeContentHandler { protected function getContentClass() { return JsonContent::class; } + + public function makeEmptyContent() { + $class = $this->getContentClass(); + return new $class( '{}' ); + } }