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
* (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 ==
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}";
# 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 );
'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',