Krinkle has uploaded a new change for review.
https://gerrit.wikimedia.org/r/185091
Change subject: Revert "Let subclasses specify content model in JsonContent"
......................................................................
Revert "Let subclasses specify content model in JsonContent"
Causes new pages created with this content model to be broken.
See bug T86748.
This reverts commit a90b4c5809938701a3864979f38e518cc0c5aefa.
Change-Id: I36eaacfe3e8fb3231eece164798a02f23857dd79
---
M includes/content/JsonContent.php
1 file changed, 2 insertions(+), 2 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/91/185091/1
diff --git a/includes/content/JsonContent.php b/includes/content/JsonContent.php
index df90f22..ff3b25b 100644
--- a/includes/content/JsonContent.php
+++ b/includes/content/JsonContent.php
@@ -25,8 +25,8 @@
/**
* @param string $text JSON
*/
- public function __construct( $text, $modelId = CONTENT_MODEL_JSON ) {
- parent::__construct( $text, $modelId );
+ public function __construct( $text ) {
+ parent::__construct( $text, CONTENT_MODEL_JSON );
}
/**
--
To view, visit https://gerrit.wikimedia.org/r/185091
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I36eaacfe3e8fb3231eece164798a02f23857dd79
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Krinkle <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits