Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information