mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-15 10:15:24 +00:00
6305746de3
Remove $title->exists() from the check, so we have the following changes: - The AbuseLog will add a diff link for page creations - Searching the AbuseLog for impact:saved will include page creations - We don't have to recreate the WikiPage again in RunVariableGenerator Also remove an old reference to "bug 31656": that comment was added in rEABFefecf8b2441ae2f31f924ff33103f5affe5d1d62, which changed Article::getContent() to Article::getRevision()->getRawText(). Nowadays we don't even use Article anymore, and that conditional isn't even for retrieving the page content, so the comment is wrong. Add logging for when the Title object cannot exist, as this should never happen in the context of the EditFilterMergedContent hook, and always create a WikiPage. Some signatures were changed to require a WikiPage object now, and every caller updated to provide it. Bug: T263104 Bug: T62179 Depends-On: Ic238eaa529ef6bfba06b4dd03924a8e0111d8259 Change-Id: Ibf3bf4f68328ba4a5616ab8f26a8b44d27a25cd7 |
||
---|---|---|
.. | ||
RCVariableGenerator.php | ||
RunVariableGenerator.php | ||
VariableGenerator.php |