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