Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
86593a05f1 | ||
|
|
8bc070a378 | ||
|
|
0a0ba4865d | ||
|
|
0c08d338a1 | ||
|
|
0e7e99d17e |
+3
-8
@@ -1,9 +1,9 @@
|
||||
{
|
||||
"require-dev": {
|
||||
"mediawiki/mediawiki-codesniffer": "45.0.0",
|
||||
"mediawiki/minus-x": "1.1.3",
|
||||
"mediawiki/mediawiki-codesniffer": "39.0.0",
|
||||
"mediawiki/minus-x": "1.1.1",
|
||||
"php-parallel-lint/php-console-highlighter": "1.0.0",
|
||||
"php-parallel-lint/php-parallel-lint": "1.4.0"
|
||||
"php-parallel-lint/php-parallel-lint": "1.3.2"
|
||||
},
|
||||
"scripts": {
|
||||
"fix": [
|
||||
@@ -16,10 +16,5 @@
|
||||
"minus-x check ."
|
||||
],
|
||||
"phpcs": "phpcs -sp --cache"
|
||||
},
|
||||
"config": {
|
||||
"allow-plugins": {
|
||||
"dealerdirect/phpcodesniffer-composer-installer": true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Generated
+1624
-2257
File diff suppressed because it is too large
Load Diff
+4
-4
@@ -5,9 +5,9 @@
|
||||
"test": "grunt test"
|
||||
},
|
||||
"devDependencies": {
|
||||
"eslint-config-wikimedia": "0.28.2",
|
||||
"grunt": "1.6.2",
|
||||
"grunt-banana-checker": "0.13.0",
|
||||
"grunt-eslint": "24.3.0"
|
||||
"eslint-config-wikimedia": "0.22.1",
|
||||
"grunt": "1.5.3",
|
||||
"grunt-banana-checker": "0.9.0",
|
||||
"grunt-eslint": "24.0.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,8 +33,7 @@ class ContributionScores extends IncludableSpecialPage {
|
||||
}
|
||||
|
||||
$user = User::newFromName( $usertext );
|
||||
$loadBalancer = MediaWikiServices::getInstance()->getDBLoadBalancer();
|
||||
$dbr = $loadBalancer->getConnection( DB_REPLICA );
|
||||
$dbr = wfGetDB( DB_REPLICA );
|
||||
|
||||
if ( $user instanceof User && $user->isRegistered() ) {
|
||||
global $wgLang;
|
||||
@@ -91,8 +90,7 @@ class ContributionScores extends IncludableSpecialPage {
|
||||
global $wgContribScoreIgnoreBots, $wgContribScoreIgnoreBlockedUsers, $wgContribScoreIgnoreUsernames,
|
||||
$wgContribScoreUseRoughEditCount;
|
||||
|
||||
$loadBalancer = MediaWikiServices::getInstance()->getDBLoadBalancer();
|
||||
$dbr = $loadBalancer->getConnection( DB_REPLICA );
|
||||
$dbr = wfGetDB( DB_REPLICA );
|
||||
|
||||
$revQuery = ActorMigration::newMigration()->getJoin( 'rev_user' );
|
||||
$revQuery['tables'] = array_merge( [ 'revision' ], $revQuery['tables'] );
|
||||
@@ -393,7 +391,7 @@ class ContributionScores extends IncludableSpecialPage {
|
||||
$out->addWikiMsg( 'contributionscores-info' );
|
||||
|
||||
foreach ( $wgContribScoreReports as $scoreReport ) {
|
||||
[ $days, $revs ] = $scoreReport;
|
||||
list( $days, $revs ) = $scoreReport;
|
||||
if ( $days > 0 ) {
|
||||
$reportTitle = $this->msg( 'contributionscores-days' )->numParams( $days )->text();
|
||||
} else {
|
||||
@@ -409,11 +407,6 @@ class ContributionScores extends IncludableSpecialPage {
|
||||
}
|
||||
}
|
||||
|
||||
public function maxIncludeCacheTime() {
|
||||
global $wgContribScoreDisableCache, $wgContribScoreCacheTTL;
|
||||
return $wgContribScoreDisableCache ? 0 : $wgContribScoreCacheTTL;
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user