Fixed bug 10836
authorTim Laqua <tlaqua@users.mediawiki.org>
Mon, 3 Sep 2007 17:46:34 +0000 (17:46 +0000)
committerTim Laqua <tlaqua@users.mediawiki.org>
Mon, 3 Sep 2007 17:46:34 +0000 (17:46 +0000)
Added 'newsectionsummary' message to allow customization and localization of prefix text in new section links in Recent Changes
Updated RELEASE-NOTES

RELEASE-NOTES
includes/EditPage.php
languages/messages/MessagesEn.php

index 84fdd2c..8cfa4a0 100644 (file)
@@ -194,8 +194,11 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
   text for a non-existent page
 * (bug 11022) Use a more accurate page title for Special:Whatlinkshere and
   Special:Recentchangeslinked
-* (bug 9426) Add 'newsectionheaderdefaultlevel' message to allow modification
-  of the heading formatting for new sections when section=new argument is supplied
+* (bug 9426) Add 'newsectionheaderdefaultlevel' message to allow 
+  modification of the heading formatting for new sections when section=new 
+  argument is supplied
+* (bug 10836) Add 'newsectionsummary' message to allow modification of the 
+  text that prefixes a new section link in Recent Changes
   
 == Bugfixes since 1.10 ==
 
@@ -431,6 +434,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 11114) Fix regression in read-only mode error display during editing
 * Force non-MySQL databases to use an ORDER BY in SpecialAllpages to ensure 
   that the first page_title is truly the first page title.
+* (bug 10836) Change the summary on creating of new section
 
 == API changes since 1.10 ==
 
index a5afb44..98c5d8b 100644 (file)
@@ -842,6 +842,10 @@ class EditPage {
                        }
                        if( $this->summary != '' ) {
                                $sectionanchor = $this->sectionAnchor( $this->summary );
+                               # This is a new section, so create a link to the new section
+                               # in the revision summary.
+                               $this->summary = wfMsg('newsectionsummary') . 
+                                       "[[{$this->mTitle->getPrefixedText()}#{$this->summary}|{$this->summary}]]";
                        }
                } elseif( $this->section != '' ) {
                        # Try to get a section anchor from the section source, redirect to edited section if header found
index 3fef550..8c5e660 100644 (file)
@@ -1351,6 +1351,7 @@ Unselected groups will not be changed. You can deselect a group with CTRL + Left
 'rc_categories'                     => 'Limit to categories (separate with "|")',
 'rc_categories_any'                 => 'Any',
 'rc-change-size'                    => '$1', # only translate this message to other languages if you have to change it
+'newsectionsummary'                 => 'New section: ',
 
 # Recent changes linked
 'recentchangeslinked'          => 'Related changes',