Index: trunk/phase3/includes/EditPage.php |
— | — | @@ -842,6 +842,10 @@ |
843 | 843 | } |
844 | 844 | if( $this->summary != '' ) { |
845 | 845 | $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}]]"; |
846 | 850 | } |
847 | 851 | } elseif( $this->section != '' ) { |
848 | 852 | # 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 @@ |
1352 | 1352 | 'rc_categories' => 'Limit to categories (separate with "|")', |
1353 | 1353 | 'rc_categories_any' => 'Any', |
1354 | 1354 | 'rc-change-size' => '$1', # only translate this message to other languages if you have to change it |
| 1355 | +'newsectionsummary' => 'New section: ', |
1355 | 1356 | |
1356 | 1357 | # Recent changes linked |
1357 | 1358 | 'recentchangeslinked' => 'Related changes', |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -194,8 +194,11 @@ |
195 | 195 | text for a non-existent page |
196 | 196 | * (bug 11022) Use a more accurate page title for Special:Whatlinkshere and |
197 | 197 | 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 |
200 | 203 | |
201 | 204 | == Bugfixes since 1.10 == |
202 | 205 | |
— | — | @@ -431,6 +434,7 @@ |
432 | 435 | * (bug 11114) Fix regression in read-only mode error display during editing |
433 | 436 | * Force non-MySQL databases to use an ORDER BY in SpecialAllpages to ensure |
434 | 437 | that the first page_title is truly the first page title. |
| 438 | +* (bug 10836) Change the summary on creating of new section |
435 | 439 | |
436 | 440 | == API changes since 1.10 == |
437 | 441 | |