Follow up to r47876, make spamregex check on move summary use $wgSummarySpamRegex
authorAlex Z <mrzman@users.mediawiki.org>
Thu, 19 Mar 2009 21:48:16 +0000 (21:48 +0000)
committerAlex Z <mrzman@users.mediawiki.org>
Thu, 19 Mar 2009 21:48:16 +0000 (21:48 +0000)
includes/Title.php

index 6f7d967..85451de 100644 (file)
@@ -2618,7 +2618,7 @@ class Title {
                                $nt->getUserPermissionsErrors('edit', $wgUser) );
                }
 
-               $match = EditPage::matchSpamRegex( $reason );
+               $match = EditPage::matchSummarySpamRegex( $reason );
                if( $match !== false ) {
                        // This is kind of lame, won't display nice
                        $errors[] = array('spamprotectiontext');