jenkins-bot has submitted this change and it was merged.
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(-)
Approvals:
Thiemo Mättig (WMDE): Looks good to me, approved
jenkins-bot: Verified
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: merged
Gerrit-Change-Id: I1127a6335f3bdc204fd3b3c15687056f42203b69
Gerrit-PatchSet: 3
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Jeroen De Dauw <[email protected]>
Gerrit-Reviewer: Hoo man <[email protected]>
Gerrit-Reviewer: Thiemo Mättig (WMDE) <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits