Fixed bug 9456 - added editsummaryheading system message to allow changing the headin...
authorTim Laqua <tlaqua@users.mediawiki.org>
Sun, 2 Sep 2007 00:36:06 +0000 (00:36 +0000)
committerTim Laqua <tlaqua@users.mediawiki.org>
Sun, 2 Sep 2007 00:36:06 +0000 (00:36 +0000)
RELEASE-NOTES
includes/Article.php
languages/messages/MessagesEn.php

index 606c584..533011a 100644 (file)
@@ -194,7 +194,9 @@ 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
-
+* Add 'editsummaryheading' message to allow modification of the heading
+  formatting for new sections (when section=new argument is supplied)
+  
 == Bugfixes since 1.10 ==
 
 * (bug 9712) Use Arabic comma in date/time formats for Arabic and Farsi
@@ -427,7 +429,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 8393) <sup> and <sub> need to be preserved (without attributes) for
   entries in the table of contents
 * (bug 11114) Fix regression in read-only mode error display during editing
-
+* (bug 9426) Some way to specify heading level for new sections
 
 == API changes since 1.10 ==
 
index 5bb5915..e0112aa 100644 (file)
@@ -1181,7 +1181,7 @@ class Article {
 
                        if( $section == 'new' ) {
                                # Inserting a new section
-                               $subject = $summary ? "== {$summary} ==\n\n" : '';
+                               $subject = $summary ? wfMsgForContent('editsummaryheading',$summary) . "\n\n" : '';
                                $text = strlen( trim( $oldtext ) ) > 0
                                                ? "{$oldtext}\n\n{$subject}{$text}"
                                                : "{$subject}{$text}";
@@ -1207,7 +1207,7 @@ class Article {
 
                # If this is a comment, add the summary as headline
                if ( $comment && $summary != "" ) {
-                       $text = "== {$summary} ==\n\n".$text;
+                       $text = wfMsgForContent('editsummaryheading',$summary) . "\n\n" . $text;
                }
 
                $this->doEdit( $text, $summary, $flags );
index fc1ad88..6a70a41 100644 (file)
@@ -709,6 +709,7 @@ XHTML id names.
 'feed-rss'                => 'RSS', # only translate this message to other languages if you have to change it
 'sitenotice'              => '-', # the equivalent to wgSiteNotice; don't translate or duplicate this message to other languages
 'anonnotice'              => '-', # don't translate or duplicate this message to other languages
+'editsummaryheading'      => '== $1 ==', # don't translate or duplicate this message to other languages
 
 # Short words for each namespace, by default used in the 'article' tab in monobook
 'nstab-main'      => 'Article',