aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/diff/CustomDifferenceEngine.php
diff options
context:
space:
mode:
authorThalia <thalia.e.chan@googlemail.com>2024-06-20 10:45:01 +0100
committerThalia <thalia.e.chan@googlemail.com>2024-06-21 10:56:45 +0100
commit5bd32be50340a3bf0af26ab74fd4b3ca19705646 (patch)
tree12baca2ae65b8dfbe3749dd1a90c3451194cfb21 /tests/phpunit/includes/diff/CustomDifferenceEngine.php
parent72580a373728b86c1e12c37d8d98f61c0a526ba3 (diff)
downloadmediawikicore-5bd32be50340a3bf0af26ab74fd4b3ca19705646.tar.gz
mediawikicore-5bd32be50340a3bf0af26ab74fd4b3ca19705646.zip
Correctly set $wgAutoCreateTempUser['matchPattern'] config in JS
Why: * $wgAutoCreateTempUser['matchPattern'] is set to null by default * In util.js, isTemporaryUser throws an error if the matchPattern is null, because it expects an array of strings. * This means that with the default config, a JavaScript error is thrown. What: * If matchPattern is null, set it to an array containing genPattern, which is the same as what RealTempUserConfig::__construct does in PHP. Bug: T367108 Change-Id: I22d3eb223dcc549335a62c3bca51319e37528a81
Diffstat (limited to 'tests/phpunit/includes/diff/CustomDifferenceEngine.php')
0 files changed, 0 insertions, 0 deletions