ApiPageSet::initFromPageIds: Default $filterIds to true
authorBrad Jorsch <bjorsch@wikimedia.org>
Wed, 12 Dec 2018 18:12:57 +0000 (13:12 -0500)
committerAnomie <bjorsch@wikimedia.org>
Wed, 12 Dec 2018 18:37:43 +0000 (18:37 +0000)
I have no idea why that was false in Ic1975220. Particularly when, of
the three calls, only one was changed to specify the parameter and that
was changed to pass false explicitly.

If it hadn't been false, it would have prevented T211804.

Bug: T211804
Change-Id: I8eea8936e9f57bf3e336f81b62bb11b9e2668788

includes/api/ApiPageSet.php

index 913f45b..4ffe873 100644 (file)
@@ -821,7 +821,7 @@ class ApiPageSet extends ApiBase {
         * @param array $pageids Array of page IDs
         * @param bool $filterIds Whether the IDs need filtering
         */
-       private function initFromPageIds( $pageids, $filterIds = false ) {
+       private function initFromPageIds( $pageids, $filterIds = true ) {
                if ( !$pageids ) {
                        return;
                }