Index: trunk/phase3/includes/Article.php |
— | — | @@ -1160,7 +1160,7 @@ |
1161 | 1161 | /** |
1162 | 1162 | * @return string Complete article text, or null if error |
1163 | 1163 | */ |
1164 | | - function replaceSection($section, $text, &$summary = '', $edittime = NULL) { |
| 1164 | + function replaceSection($section, $text, $summary = '', $edittime = NULL) { |
1165 | 1165 | wfProfileIn( __METHOD__ ); |
1166 | 1166 | |
1167 | 1167 | if( $section == '' ) { |
— | — | @@ -1182,8 +1182,6 @@ |
1183 | 1183 | if( $section == 'new' ) { |
1184 | 1184 | # Inserting a new section |
1185 | 1185 | $subject = $summary ? wfMsgForContent('newsectionheaderdefaultlevel',$summary) . "\n\n" : ''; |
1186 | | - # Heading has been added to text, now wrap comment for RC linking to heading |
1187 | | - $summary = "/* {$summary} */"; |
1188 | 1186 | $text = strlen( trim( $oldtext ) ) > 0 |
1189 | 1187 | ? "{$oldtext}\n\n{$subject}{$text}" |
1190 | 1188 | : "{$subject}{$text}"; |
— | — | @@ -1202,7 +1200,7 @@ |
1203 | 1201 | /** |
1204 | 1202 | * @deprecated use Article::doEdit() |
1205 | 1203 | */ |
1206 | | - function insertNewArticle( $text, &$summary, $isminor, $watchthis, $suppressRC=false, $comment=false ) { |
| 1204 | + function insertNewArticle( $text, $summary, $isminor, $watchthis, $suppressRC=false, $comment=false ) { |
1207 | 1205 | $flags = EDIT_NEW | EDIT_DEFER_UPDATES | EDIT_AUTOSUMMARY | |
1208 | 1206 | ( $isminor ? EDIT_MINOR : 0 ) | |
1209 | 1207 | ( $suppressRC ? EDIT_SUPPRESS_RC : 0 ); |
— | — | @@ -1210,8 +1208,6 @@ |
1211 | 1209 | # If this is a comment, add the summary as headline |
1212 | 1210 | if ( $comment && $summary != "" ) { |
1213 | 1211 | $text = wfMsgForContent('newsectionheaderdefaultlevel',$summary) . "\n\n".$text; |
1214 | | - # Heading has been added to text, now wrap comment for RC linking to heading |
1215 | | - $summary = "/* {$summary} */"; |
1216 | 1212 | } |
1217 | 1213 | |
1218 | 1214 | $this->doEdit( $text, $summary, $flags ); |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -429,7 +429,6 @@ |
430 | 430 | * (bug 8393) <sup> and <sub> need to be preserved (without attributes) for |
431 | 431 | entries in the table of contents |
432 | 432 | * (bug 11114) Fix regression in read-only mode error display during editing |
433 | | -* (bug 10836) Change the summary on creating of new section |
434 | 433 | |
435 | 434 | == API changes since 1.10 == |
436 | 435 | |