Jeroen De Dauw has uploaded a new change for review. https://gerrit.wikimedia.org/r/176317
Change subject: Stop using deprecated methods in importInterlang ...................................................................... Stop using deprecated methods in importInterlang Change-Id: I1127a6335f3bdc204fd3b3c15687056f42203b69 --- M repo/maintenance/importInterlang.php 1 file changed, 3 insertions(+), 3 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Wikibase refs/changes/17/176317/1 diff --git a/repo/maintenance/importInterlang.php b/repo/maintenance/importInterlang.php index e8dc823..9237758 100644 --- a/repo/maintenance/importInterlang.php +++ b/repo/maintenance/importInterlang.php @@ -15,7 +15,6 @@ */ use Wikibase\DataModel\Entity\Item; -use Wikibase\DataModel\SiteLink; use Wikibase\Lib\Store\EntityStore; use Wikibase\Repo\WikibaseRepo; @@ -24,6 +23,7 @@ require_once $basePath . '/maintenance/Maintenance.php'; class importInterlang extends Maintenance { + protected $verbose = false; protected $ignore_errors = false; protected $skip = 0; @@ -141,8 +141,8 @@ $name = strtr( $title, "_", " " ); $label = preg_replace( '/ *\(.*\)$/u', '', $name ); - $item->setLabel( $lang, $label ); - $item->addSiteLink( new SiteLink( $lang . 'wiki', $name ) ); + $item->getFingerprint()->setLabel( $lang, $label ); + $item->getSiteLinkList()->addNewSiteLink( $lang . 'wiki', $name ); } try { -- To view, visit https://gerrit.wikimedia.org/r/176317 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I1127a6335f3bdc204fd3b3c15687056f42203b69 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/Wikibase Gerrit-Branch: master Gerrit-Owner: Jeroen De Dauw <jeroended...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits