mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-24 06:03:49 +00:00
Merge "Allow special pages as context for abuse filter."
This commit is contained in:
commit
8cb215bc01
|
@ -284,7 +284,7 @@ class AbuseFilter {
|
|||
$vars->setVar( $prefix . '_TEXT', $title->getText() );
|
||||
$vars->setVar( $prefix . '_PREFIXEDTEXT', $title->getPrefixedText() );
|
||||
global $wgDisableCounters;
|
||||
if ( !$wgDisableCounters ) {
|
||||
if ( !$wgDisableCounters && !$title->isSpecialPage() ) {
|
||||
$vars->setVar( $prefix . '_VIEWS', WikiPage::factory( $title )->getCount() );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue