Merge "Allow special pages as context for abuse filter."

This commit is contained in:
Hoo man 2013-01-22 13:18:54 +00:00 committed by Gerrit Code Review
commit 8cb215bc01

View file

@ -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() );
}