r17913 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r17912‎ | r17913 | r17914 >
Date:19:06, 24 November 2006
Author:rotem
Status:old
Tags:
Comment:
(bug 8009) Automatic edit summary for redirects is not filled for edits in existing pages
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/Article.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Article.php
@@ -2697,17 +2697,15 @@
26982698
26992699 $summary = '';
27002700
2701 - #Blanking autosummaries
2702 - if (!($flags & EDIT_NEW))
2703 - $summary = self::getBlankingAutosummary( $oldtext, $newtext );
 2701+ #Redirect autosummaries
 2702+ $summary = self::getRedirectAutosummary( $newtext );
27042703
27052704 if ($summary)
27062705 return $summary;
27072706
2708 - #New redirect autosummaries.
2709 - if ( $flags & EDIT_NEW ) {
2710 - $summary = self::getRedirectAutosummary( $newtext );
2711 - }
 2707+ #Blanking autosummaries
 2708+ if (!($flags & EDIT_NEW))
 2709+ $summary = self::getBlankingAutosummary( $oldtext, $newtext );
27122710
27132711 if ($summary)
27142712 return $summary;
Index: trunk/phase3/RELEASE-NOTES
@@ -213,6 +213,7 @@
214214 can be protected from autoblocking. These ranges are specified, in list format,
215215 in the autoblock_whitelist system message.
216216 * Added placeholders for text injection by hooks to EditPage.php
 217+* (bug 8009) Automatic edit summary for redirects is not filled for edits in existing pages
217218
218219 == Languages updated ==
219220

Follow-up revisions

RevisionCommit summaryAuthorDate
r17932(bug 8009) Title change for ancientpages in dewerdna00:10, 26 November 2006