Compare commits

..
5 Commits
Author SHA1 Message Date
libraryupgrader 86593a05f1 build: Updating js-yaml to 3.14.2, 4.1.1
* https://github.com/advisories/GHSA-mh29-5h37-fv8m

Change-Id: I24ec4eccee8dcf4673187cbb4469e8d78b902d58
2025-11-21 06:09:13 +00:00
libraryupgrader 8bc070a378 build: Updating brace-expansion to 1.1.12
* https://github.com/advisories/GHSA-v6h2-p8h4-qcjw

Change-Id: I96dac3c635b77ecfbdcc31b4860bbf96553ca0ee
2025-06-13 22:14:17 +00:00
libraryupgrader 0a0ba4865d build: Updating npm dependencies
* braces: 3.0.2 → 3.0.3
  * https://github.com/advisories/GHSA-grv7-fg5c-xmjg
* cross-spawn: 7.0.3 → 7.0.6
  * https://github.com/advisories/GHSA-3xgq-45jj-v275
* eslint-plugin-compat: 4.0.2 → 4.2.0
  * https://github.com/advisories/GHSA-c2qf-rxjj-qqgw
* micromatch: 4.0.5 → 4.0.8
  * https://github.com/advisories/GHSA-952p-6rrq-rcjv
* semver: 5.7.1, 6.3.0, 7.3.5 → 5.7.2, 6.3.1, 7.7.2
  * https://github.com/advisories/GHSA-c2qf-rxjj-qqgw
* word-wrap: 1.2.3 → 1.2.5
  * https://github.com/advisories/GHSA-j8xg-fqg3-53r7

Change-Id: I9b577dd7fa72cc8cf4806d9cdc79f39810bb4cdf
2025-05-22 03:55:03 +00:00
Luca MauriandUmherirrender 0c08d338a1 Fix "Cannot access non-public property Parser::$mStripState"
Discussed under https://www.mediawiki.org/wiki/Topic:Xc6c9apmxydt7817

Bug: T333675
Change-Id: Ifd38878edfd6481de85efd716e4f954cd1e449bb
(cherry picked from commit 4212d24b49)
2023-09-03 18:07:07 +00:00
libraryupgrader 0e7e99d17e build: Updating minimatch to 3.0.8
* https://github.com/advisories/GHSA-f8q6-p94x-37v3

Change-Id: Id4bb9a49e8bd7c57be813749eef1f31310fc118e
2022-12-04 05:03:18 +00:00
4 changed files with 1634 additions and 2279 deletions
+3 -8
View File
@@ -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
}
}
}
+1624 -2257
View File
File diff suppressed because it is too large Load Diff
+4 -4
View File
@@ -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"
}
}
+3 -10
View File
@@ -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
*/