r25445 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r25444‎ | r25445 | r25446 >
Date:17:46, 3 September 2007
Author:tlaqua
Status:old
Tags:
Comment:
Fixed bug 10836
Added 'newsectionsummary' message to allow customization and localization of prefix text in new section links in Recent Changes
Updated RELEASE-NOTES
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/EditPage.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesEn.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/EditPage.php
@@ -842,6 +842,10 @@
843843 }
844844 if( $this->summary != '' ) {
845845 $sectionanchor = $this->sectionAnchor( $this->summary );
 846+ # This is a new section, so create a link to the new section
 847+ # in the revision summary.
 848+ $this->summary = wfMsg('newsectionsummary') .
 849+ "[[{$this->mTitle->getPrefixedText()}#{$this->summary}|{$this->summary}]]";
846850 }
847851 } elseif( $this->section != '' ) {
848852 # Try to get a section anchor from the section source, redirect to edited section if header found
Index: trunk/phase3/languages/messages/MessagesEn.php
@@ -1351,6 +1351,7 @@
13521352 'rc_categories' => 'Limit to categories (separate with "|")',
13531353 'rc_categories_any' => 'Any',
13541354 'rc-change-size' => '$1', # only translate this message to other languages if you have to change it
 1355+'newsectionsummary' => 'New section: ',
13551356
13561357 # Recent changes linked
13571358 'recentchangeslinked' => 'Related changes',
Index: trunk/phase3/RELEASE-NOTES
@@ -194,8 +194,11 @@
195195 text for a non-existent page
196196 * (bug 11022) Use a more accurate page title for Special:Whatlinkshere and
197197 Special:Recentchangeslinked
198 -* (bug 9426) Add 'newsectionheaderdefaultlevel' message to allow modification
199 - of the heading formatting for new sections when section=new argument is supplied
 198+* (bug 9426) Add 'newsectionheaderdefaultlevel' message to allow
 199+ modification of the heading formatting for new sections when section=new
 200+ argument is supplied
 201+* (bug 10836) Add 'newsectionsummary' message to allow modification of the
 202+ text that prefixes a new section link in Recent Changes
200203
201204 == Bugfixes since 1.10 ==
202205
@@ -431,6 +434,7 @@
432435 * (bug 11114) Fix regression in read-only mode error display during editing
433436 * Force non-MySQL databases to use an ORDER BY in SpecialAllpages to ensure
434437 that the first page_title is truly the first page title.
 438+* (bug 10836) Change the summary on creating of new section
435439
436440 == API changes since 1.10 ==
437441

Follow-up revisions

RevisionCommit summaryAuthorDate
r25454Merged revisions 25415-25453 via svnmerge from...david19:27, 3 September 2007
r25573Refining fix for bug 10836 - taking care of unintended behavior....tlaqua04:11, 6 September 2007
r25607Merged revisions 25530-25606 via svnmerge from...david06:11, 7 September 2007

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r25398Fixed bug 10836...tlaqua01:41, 2 September 2007
r25400Backing off fix for bug 10836 - previous attempt was incomplete. Will revisi...tlaqua02:50, 2 September 2007
r25415Merged revisions 25372-25414 via svnmerge from...david21:15, 2 September 2007

Status & tagging log