From a90b4c5809938701a3864979f38e518cc0c5aefa Mon Sep 17 00:00:00 2001 From: wctaiwan Date: Sat, 10 Jan 2015 00:08:02 -0500 Subject: [PATCH] Let subclasses specify content model in JsonContent This is needed for extensions that subclass JsonContent. Follows up Ifed379ba4674a8289b55 Change-Id: I2f4f9cb343c2ab3ee802b584d3c79d0fafadf9e7 --- includes/content/JsonContent.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/content/JsonContent.php b/includes/content/JsonContent.php index ff3b25b8b2..df90f229f4 100644 --- a/includes/content/JsonContent.php +++ b/includes/content/JsonContent.php @@ -25,8 +25,8 @@ class JsonContent extends TextContent { /** * @param string $text JSON */ - public function __construct( $text ) { - parent::__construct( $text, CONTENT_MODEL_JSON ); + public function __construct( $text, $modelId = CONTENT_MODEL_JSON ) { + parent::__construct( $text, $modelId ); } /** -- 2.20.1