(bug 8009) Automatic edit summary for redirects is not filled for edits in existing...
authorRotem Liss <rotem@users.mediawiki.org>
Fri, 24 Nov 2006 19:06:35 +0000 (19:06 +0000)
committerRotem Liss <rotem@users.mediawiki.org>
Fri, 24 Nov 2006 19:06:35 +0000 (19:06 +0000)
RELEASE-NOTES
includes/Article.php

index 40ffd5c..68c0898 100644 (file)
@@ -213,6 +213,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
    can be protected from autoblocking. These ranges are specified, in list format,
    in the autoblock_whitelist system message.
 * Added placeholders for text injection by hooks to EditPage.php
+* (bug 8009) Automatic edit summary for redirects is not filled for edits in existing pages
 
 == Languages updated ==
 
index e5e3414..83bb88e 100644 (file)
@@ -2697,17 +2697,15 @@ class Article {
 
                $summary = '';
 
-               #Blanking autosummaries
-               if (!($flags & EDIT_NEW))
-                       $summary = self::getBlankingAutosummary( $oldtext, $newtext );
+               #Redirect autosummaries
+               $summary = self::getRedirectAutosummary( $newtext );
 
                if ($summary)
                        return $summary;
 
-               #New redirect autosummaries.
-               if ( $flags & EDIT_NEW ) {
-                       $summary = self::getRedirectAutosummary( $newtext );
-               }
+               #Blanking autosummaries
+               if (!($flags & EDIT_NEW))
+                       $summary = self::getBlankingAutosummary( $oldtext, $newtext );
 
                if ($summary)
                        return $summary;