mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-23 21:53:35 +00:00
963221ad6d
Ensure that the variable isn't set before marking it as DUNDEFINED: that's only for when we cannot use a default, but if the variable is set we already have one. Most notably, this fixes conditionals handling: right now, if you have a conditional with an assignment in both branches, the variable will be undefined. That's obviously wrong, so it's fixed in this patch. Plus: catch only AFPExceptions in a test to avoid unintentionally catching the assert exception; simplify some assignments using wfSetVar. Depends-On: I446a307e5395ea8cc8ec5ca5d5390b074bea2f24 Change-Id: I8e7f7710b8cb37ada8531b631456a3ce7b27ee45 |
||
---|---|---|
.phan | ||
db_patches | ||
i18n | ||
includes | ||
maintenance | ||
modules | ||
tests | ||
.eslintrc.json | ||
.gitignore | ||
.gitreview | ||
.phpcs.xml | ||
.stylelintrc.json | ||
AbuseFilter.alias.php | ||
abusefilter.tables.pg.sql | ||
abusefilter.tables.sql | ||
abusefilter.tables.sqlite.sql | ||
CODE_OF_CONDUCT.md | ||
composer.json | ||
COPYING | ||
extension.json | ||
Gruntfile.js | ||
hooks.txt | ||
package-lock.json | ||
package.json |