Go to file
Roan Kattouw f3c9a0a255 AttributeManager: Check notify type availability before notifying
It was sort of checked in an implicit and roundabout way, in the sense
that the preferences page checks this and forces the relevant
preferences to on or off. But this was difficult to discover, and it's
not clear if this works correctly when defaults change.

Instead, explicitly check whether the requested notify type is available
for the event's category. Also rewrite the entire method to use
array_filter().

Change-Id: I9502a42fc705b2e56ef5edab433f1804f2924359
2019-04-12 18:00:04 -07:00
.phan Add phan 2019-04-10 18:51:59 +02:00
db_patches Update column names in SQLite patch file 2019-04-11 13:27:16 +02:00
i18n Localisation updates from https://translatewiki.net. 2019-04-10 09:22:59 +02:00
images Unify BetaFeatures SVG screenshot markup 2017-12-19 09:01:12 -08:00
includes AttributeManager: Check notify type availability before notifying 2019-04-12 18:00:04 -07:00
maintenance Add phan 2019-04-10 18:51:59 +02:00
modules Merge "Add visible help link for Special:Notifications" 2019-04-09 15:32:14 +00:00
scripts Use addDescription() instead of accessing guts directly 2019-03-26 22:07:48 -07:00
tests AttributeManager: Check notify type availability before notifying 2019-04-12 18:00:04 -07:00
.eslintrc.json build: Set "root": true, in .eslintrc.json 2018-12-17 18:54:51 -08:00
.gitignore build: Upgrade eslint-config-wikimedia from 0.10.1 to 0.11.0 2019-04-03 15:57:20 -07:00
.gitreview Whoops, track not trace 2016-10-24 17:02:28 -07:00
.mailmap Add Kunal, Moriel, Jon to credits; add mailmap file 2015-12-15 16:30:19 -08:00
.phpcs.xml phpcs: exclude the vendor folder 2018-12-27 21:32:39 +00:00
.stylelintrc.json build: Update linters 2018-02-04 21:23:28 +00:00
CODE_OF_CONDUCT.md build: Updating mediawiki/mediawiki-codesniffer to 22.0.0 2018-09-03 01:46:10 +00:00
composer.json Add phan 2019-04-10 18:51:59 +02:00
COPYING
Echo.alias.php Remove U+200E (LRM) from comments 2018-09-24 22:15:51 +02:00
echo.sql Remove notification_bundle_display_hash 2019-03-06 10:29:05 -08:00
extension.json Remove unused messages 2019-04-10 03:37:18 +00:00
Gruntfile.js build: Upgrade eslint-config-wikimedia from 0.10.1 to 0.11.0 2019-04-03 15:57:20 -07:00
jsduck.external.js jsduck: Remove custom @source tag 2016-09-21 00:51:46 +01:00
jsduck.json Add JSDuck support and fix errors 2016-05-11 14:07:12 -07:00
jsduck_custom_tags.rb jsduck: Remove custom @source tag 2016-09-21 00:51:46 +01:00
Makefile Remove obsolete scripts/generatecss.php 2018-09-09 17:07:26 -07:00
package.json build: Upgrade eslint-config-wikimedia from 0.10.1 to 0.11.0 2019-04-03 15:57:20 -07:00
RELEASE_NOTES BREAKING CHANGE: Use ISO 8601 for 'ts' in cross-wiki summary. 2016-07-27 17:00:05 -04:00