X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FPageProps.php;h=ff8deee3733418b66be47b784694bf7cd58289dd;hb=a818c667e50ec45397766f1f044ecf39e9f7a072;hp=382d089c5bc7a10dc24af0a9261a20d66dae93ba;hpb=49748181dd56ec97e7ba7c13e684a16abceb3cc0;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/PageProps.php b/includes/PageProps.php index 382d089c5b..ff8deee373 100644 --- a/includes/PageProps.php +++ b/includes/PageProps.php @@ -55,7 +55,7 @@ class PageProps { } $previousValue = self::$instance; self::$instance = $store; - return new ScopedCallback( function() use ( $previousValue ) { + return new ScopedCallback( function () use ( $previousValue ) { self::$instance = $previousValue; } ); } @@ -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 ) {