dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Warn if stateful ParserOutput transforms are used"
[lhc/web/wiklou.git]
/
includes
/
PageProps.php
diff --git
a/includes/PageProps.php
b/includes/PageProps.php
index
382d089
..
ff8deee
100644
(file)
--- a/
includes/PageProps.php
+++ b/
includes/PageProps.php
@@
-55,7
+55,7
@@
class PageProps {
}
$previousValue = self::$instance;
self::$instance = $store;
}
$previousValue = self::$instance;
self::$instance = $store;
- return new ScopedCallback( function() use ( $previousValue ) {
+ return new ScopedCallback( function
() use ( $previousValue ) {
self::$instance = $previousValue;
} );
}
self::$instance = $previousValue;
} );
}
@@
-242,6
+242,8
@@
class PageProps {
private function getGoodIDs( $titles ) {
$result = [];
if ( is_array( $titles ) ) {
private function getGoodIDs( $titles ) {
$result = [];
if ( is_array( $titles ) ) {
+ ( new LinkBatch( $titles ) )->execute();
+
foreach ( $titles as $title ) {
$pageID = $title->getArticleID();
if ( $pageID > 0 ) {
foreach ( $titles as $title ) {
$pageID = $title->getArticleID();
if ( $pageID > 0 ) {