mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/PageImages
synced 2024-11-15 03:43:46 +00:00
build: Updating mediawiki/mediawiki-codesniffer to 13.0.0
Change-Id: Ide53c76f5c1cf7ae0313d06eeaccccbc90de259e
This commit is contained in:
parent
b4109faac9
commit
c3fe4c1fa7
|
@ -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",
|
||||
|
|
|
@ -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 = [];
|
||||
|
||||
|
|
|
@ -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' ],
|
||||
[
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue