build: Updating mediawiki/mediawiki-codesniffer to 13.0.0

Change-Id: Ide53c76f5c1cf7ae0313d06eeaccccbc90de259e
This commit is contained in:
libraryupgrader 2017-09-24 05:30:58 +00:00
parent b4109faac9
commit c3fe4c1fa7
4 changed files with 4 additions and 5 deletions

View file

@ -2,7 +2,7 @@
"require-dev": {
"jakub-onderka/php-parallel-lint": "0.9.2",
"jakub-onderka/php-console-highlighter": "0.3.2",
"mediawiki/mediawiki-codesniffer": "0.12.0"
"mediawiki/mediawiki-codesniffer": "13.0.0"
},
"scripts": {
"fix": "phpcbf",

View file

@ -266,7 +266,7 @@ class LinksUpdateHookHandler {
* @return string[]
*/
private function getDbBlacklist( $dbName, $page ) {
$dbr = wfGetDB( DB_SLAVE, [], $dbName );
$dbr = wfGetDB( DB_REPLICA, [], $dbName );
$title = Title::newFromText( $page );
$list = [];

View file

@ -47,7 +47,7 @@ class PageImages {
* @return File|bool
*/
public static function getPageImage( Title $title ) {
$dbr = wfGetDB( DB_SLAVE );
$dbr = wfGetDB( DB_REPLICA );
$fileName = $dbr->selectField( 'page_props',
[ 'pp_value' ],
[

View file

@ -6,7 +6,6 @@ if ( $IP === false ) {
}
require_once "$IP/maintenance/Maintenance.php";
use MediaWiki\MediaWikiServices;
use PageImages\Job\InitImageDataJob;
/**
@ -51,7 +50,7 @@ class InitImageData extends Maintenance {
'LEFT JOIN', 'page_id = il_from',
] ];
$dbr = wfGetDB( DB_SLAVE );
$dbr = wfGetDB( DB_REPLICA );
if ( $this->hasOption( 'namespaces' ) ) {
$ns = explode( ',', $this->getOption( 'namespaces' ) );
$conds['page_namespace'] = $ns;