From 1a49a119e2aafff7d1eccb19923d00e52a04e2fd Mon Sep 17 00:00:00 2001 From: Marius Hoch Date: Wed, 30 Aug 2017 20:32:19 +0200 Subject: [PATCH] Only do one query for page ids in PageProps::getGoodIDs Change-Id: I0d1cff3173d54de0b8fadb5bf9766789ffe030a4 --- includes/PageProps.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/includes/PageProps.php b/includes/PageProps.php index dac756ed75..ff8deee373 100644 --- a/includes/PageProps.php +++ b/includes/PageProps.php @@ -242,6 +242,8 @@ class PageProps { private function getGoodIDs( $titles ) { $result = []; if ( is_array( $titles ) ) { + ( new LinkBatch( $titles ) )->execute(); + foreach ( $titles as $title ) { $pageID = $title->getArticleID(); if ( $pageID > 0 ) { -- 2.20.1