Ori.livneh has uploaded a new change for review.
https://gerrit.wikimedia.org/r/180706
Change subject: Update for commit e4f84af98 in MediaWiki/Core
......................................................................
Update for commit e4f84af98 in MediaWiki/Core
Use JsonContent::getData instead of JsonContent::getJsonData.
Change-Id: Id961a73666cd3474b32db04c5740d5e109d31495
---
M includes/ApiJsonSchema.php
M includes/JsonSchemaContent.php
2 files changed, 3 insertions(+), 3 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/EventLogging
refs/changes/06/180706/1
diff --git a/includes/ApiJsonSchema.php b/includes/ApiJsonSchema.php
index 5849fc8..346ab21 100644
--- a/includes/ApiJsonSchema.php
+++ b/includes/ApiJsonSchema.php
@@ -125,7 +125,7 @@
}
$this->markCacheable();
- $schema = $content->getJsonData( true );
+ $schema = $content->getData( true );
$result = $this->getResult();
$result->addValue( null, 'title', $title->getText() );
diff --git a/includes/JsonSchemaContent.php b/includes/JsonSchemaContent.php
index 96e5709..da15fdd 100644
--- a/includes/JsonSchemaContent.php
+++ b/includes/JsonSchemaContent.php
@@ -56,7 +56,7 @@
* @return bool: True if valid.
*/
function validate() {
- $schema = $this->getJsonData();
+ $schema = $this->getData();
if ( !is_array( $schema ) ) {
throw new JsonSchemaException( wfMessage(
'eventlogging-invalid-json' )->parse() );
}
@@ -178,7 +178,7 @@
* @return string: HTML representation.
*/
function getHtml() {
- $schema = $this->getJsonData();
+ $schema = $this->getData();
return is_array( $schema ) ? self::objectTable( $schema ) : '';
}
}
--
To view, visit https://gerrit.wikimedia.org/r/180706
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Id961a73666cd3474b32db04c5740d5e109d31495
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/EventLogging
Gerrit-Branch: master
Gerrit-Owner: Ori.livneh <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits