dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Special:UserLogin: Remove unnecessarily specificity from selectors"
[lhc/web/wiklou.git]
/
includes
/
content
/
JsonContentHandler.php
diff --git
a/includes/content/JsonContentHandler.php
b/includes/content/JsonContentHandler.php
index
f97eaa4
..
edb21f6
100644
(file)
--- a/
includes/content/JsonContentHandler.php
+++ b/
includes/content/JsonContentHandler.php
@@
-37,6
+37,11
@@
class JsonContentHandler extends CodeContentHandler {
* @return string
*/
protected function getContentClass() {
* @return string
*/
protected function getContentClass() {
- return 'JsonContent';
+ return JsonContent::class;
+ }
+
+ public function makeEmptyContent() {
+ $class = $this->getContentClass();
+ return new $class( '{}' );
}
}
}
}