Jeroen De Dauw has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/149226

Change subject: DM 1.0 compat: do not use Entity::toArray
......................................................................

DM 1.0 compat: do not use Entity::toArray

Change-Id: Ie53b1851564ef599eeb7d886a7fd41051b7d72a0
---
M repo/includes/content/EntityContent.php
1 file changed, 2 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Wikibase 
refs/changes/26/149226/1

diff --git a/repo/includes/content/EntityContent.php 
b/repo/includes/content/EntityContent.php
index 68d7086..54ecce8 100644
--- a/repo/includes/content/EntityContent.php
+++ b/repo/includes/content/EntityContent.php
@@ -527,7 +527,8 @@
                }
 
                // NOTE: this may or may not be consistent with what 
EntityContentCodec does!
-               return $this->getEntity()->toArray();
+               $serializer = 
WikibaseRepo::getDefaultInstance()->getInternalEntitySerializer();
+               return $serializer->serialize( $this->getEntity() );
        }
 
        /**

-- 
To view, visit https://gerrit.wikimedia.org/r/149226
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie53b1851564ef599eeb7d886a7fd41051b7d72a0
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Jeroen De Dauw <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to