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 "OutputPage::getCategories(): Add a possibility to distinguish "normal" and...
[lhc/web/wiklou.git]
/
includes
/
PageProps.php
diff --git
a/includes/PageProps.php
b/includes/PageProps.php
index
5579ba5
..
d09e1fb
100644
(file)
--- a/
includes/PageProps.php
+++ b/
includes/PageProps.php
@@
-19,6
+19,7
@@
*
* @file
*/
*
* @file
*/
+use Wikimedia\ScopedCallback;
/**
* Gives access to properties of a page.
/**
* Gives access to properties of a page.
@@
-140,7
+141,7
@@
class PageProps {
}
if ( $queryIDs ) {
}
if ( $queryIDs ) {
- $dbr = wfGetDB( DB_
SLAVE
);
+ $dbr = wfGetDB( DB_
REPLICA
);
$result = $dbr->select(
'page_props',
[
$result = $dbr->select(
'page_props',
[
@@
-198,7
+199,7
@@
class PageProps {
}
if ( $queryIDs != [] ) {
}
if ( $queryIDs != [] ) {
- $dbr = wfGetDB( DB_
SLAVE
);
+ $dbr = wfGetDB( DB_
REPLICA
);
$result = $dbr->select(
'page_props',
[
$result = $dbr->select(
'page_props',
[