DB_SLAVE -> DB_REPLICA

Timeless requires MW 1.29 or newer anyway, so this is perfectly fine,
given that DB_SLAVE is deprecated in modern versions of MW in favor of the
new DB_REPLICA constant (which was even backported to MW 1.27 branch).

Change-Id: I96635a042a7b149cc024f44f3383421a7c7fb721
isekai
Jack Phoenix 7 years ago
parent 5c00e97e13
commit 5d920036a0

@ -724,7 +724,7 @@ class TimelessTemplate extends BaseTemplate {
}
}
if ( count( $allCats ) > 0 ) {
$dbr = wfGetDB( DB_SLAVE );
$dbr = wfGetDB( DB_REPLICA );
$res = $dbr->select(
[ 'page', 'page_props' ],
[ 'page_id', 'page_title' ],

Loading…
Cancel
Save