mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Gadgets
synced 2024-11-24 07:23:30 +00:00
build: Updating mediawiki/mediawiki-codesniffer to 13.0.0
Change-Id: I40598f8c34691bbe7b217aa38f24f150a210e2f3
This commit is contained in:
parent
cf0587c026
commit
969027392e
|
@ -67,7 +67,7 @@ class SpecialGadgetUsage extends QueryPage {
|
|||
* @return array
|
||||
*/
|
||||
public function getQueryInfo() {
|
||||
$dbr = wfGetDB( DB_SLAVE );
|
||||
$dbr = wfGetDB( DB_REPLICA );
|
||||
if ( !$this->activeUsers ) {
|
||||
return [
|
||||
'tables' => [ 'user_properties' ],
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -35,7 +35,7 @@ class GadgetDefinitionNamespaceRepo extends GadgetRepo {
|
|||
$key,
|
||||
self::CACHE_TTL,
|
||||
function ( $oldValue, &$ttl, array &$setOpts ) {
|
||||
$dbr = wfGetDB( DB_SLAVE );
|
||||
$dbr = wfGetDB( DB_REPLICA );
|
||||
$setOpts += Database::getCacheSetOptions( $dbr );
|
||||
|
||||
return $dbr->selectFieldValues(
|
||||
|
@ -71,7 +71,7 @@ class GadgetDefinitionNamespaceRepo extends GadgetRepo {
|
|||
$key,
|
||||
self::CACHE_TTL,
|
||||
function ( $old, &$ttl, array &$setOpts ) use ( $id ) {
|
||||
$setOpts += Database::getCacheSetOptions( wfGetDB( DB_SLAVE ) );
|
||||
$setOpts += Database::getCacheSetOptions( wfGetDB( DB_REPLICA ) );
|
||||
$title = Title::makeTitleSafe( NS_GADGET_DEFINITION, $id );
|
||||
if ( !$title ) {
|
||||
$ttl = WANObjectCache::TTL_UNCACHEABLE;
|
||||
|
|
Loading…
Reference in a new issue