r25396 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r25395‎ | r25396 | r25397 >
Date:00:36, 2 September 2007
Author:tlaqua
Status:old
Tags:
Comment:
Fixed bug 9456 - added editsummaryheading system message to allow changing the heading level for newly added sections (i.e. section=new)
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/Article.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesEn.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Article.php
@@ -1181,7 +1181,7 @@
11821182
11831183 if( $section == 'new' ) {
11841184 # Inserting a new section
1185 - $subject = $summary ? "== {$summary} ==\n\n" : '';
 1185+ $subject = $summary ? wfMsgForContent('editsummaryheading',$summary) . "\n\n" : '';
11861186 $text = strlen( trim( $oldtext ) ) > 0
11871187 ? "{$oldtext}\n\n{$subject}{$text}"
11881188 : "{$subject}{$text}";
@@ -1207,7 +1207,7 @@
12081208
12091209 # If this is a comment, add the summary as headline
12101210 if ( $comment && $summary != "" ) {
1211 - $text = "== {$summary} ==\n\n".$text;
 1211+ $text = wfMsgForContent('editsummaryheading',$summary) . "\n\n" . $text;
12121212 }
12131213
12141214 $this->doEdit( $text, $summary, $flags );
Index: trunk/phase3/languages/messages/MessagesEn.php
@@ -709,6 +709,7 @@
710710 'feed-rss' => 'RSS', # only translate this message to other languages if you have to change it
711711 'sitenotice' => '-', # the equivalent to wgSiteNotice; don't translate or duplicate this message to other languages
712712 'anonnotice' => '-', # don't translate or duplicate this message to other languages
 713+'editsummaryheading' => '== $1 ==', # don't translate or duplicate this message to other languages
713714
714715 # Short words for each namespace, by default used in the 'article' tab in monobook
715716 'nstab-main' => 'Article',
Index: trunk/phase3/RELEASE-NOTES
@@ -194,7 +194,9 @@
195195 text for a non-existent page
196196 * (bug 11022) Use a more accurate page title for Special:Whatlinkshere and
197197 Special:Recentchangeslinked
198 -
 198+* Add 'editsummaryheading' message to allow modification of the heading
 199+ formatting for new sections (when section=new argument is supplied)
 200+
199201 == Bugfixes since 1.10 ==
200202
201203 * (bug 9712) Use Arabic comma in date/time formats for Arabic and Farsi
@@ -427,8 +429,8 @@
428430 * (bug 8393) <sup> and <sub> need to be preserved (without attributes) for
429431 entries in the table of contents
430432 * (bug 11114) Fix regression in read-only mode error display during editing
 433+* (bug 9426) Some way to specify heading level for new sections
431434
432 -
433435 == API changes since 1.10 ==
434436
435437 Full API documentation is available at http://www.mediawiki.org/wiki/API

Follow-up revisions

RevisionCommit summaryAuthorDate
r25415Merged revisions 25372-25414 via svnmerge from...david21:15, 2 September 2007

Status & tagging log