mirror of
https://github.com/diocloid/LinkTitles.git
synced 2025-07-13 09:49:31 +02:00
DB_SLAVE -> DB_REPLICA (#44)
* --amend * Add Beerpay badge * Remove beerpay badge. * Remove erroneous release folder from master branch. * DB_SLAVE -> DB_REPLICA DB_SLAVE has been removed under 1.34 thus throws an exception. * Update Targets.php * Update linktitles-cli.php * Update Special.php
This commit is contained in:
@ -134,7 +134,7 @@ class Targets {
|
||||
// shortest to longest. Only titles from 'normal' pages (namespace uid
|
||||
// = 0) are returned. Since the db may be sqlite, we need a try..catch
|
||||
// structure because sqlite does not support the CHAR_LENGTH function.
|
||||
$dbr = wfGetDB( DB_SLAVE );
|
||||
$dbr = wfGetDB( DB_REPLICA );
|
||||
$this->queryResult = $dbr->select(
|
||||
'page',
|
||||
array( 'page_title', 'page_namespace' , "weight" => $weightSelect),
|
||||
|
Reference in New Issue
Block a user