From: Tim Laqua Date: Sun, 2 Sep 2007 02:50:19 +0000 (+0000) Subject: Backing off fix for bug 10836 - previous attempt was incomplete. Will revisit later. X-Git-Tag: 1.31.0-rc.0~51559 X-Git-Url: http://git.cyclocoop.org/?a=commitdiff_plain;h=9858ea8b3ae16cb21f308c4e061e9c7158b060a2;p=lhc%2Fweb%2Fwiklou.git Backing off fix for bug 10836 - previous attempt was incomplete. Will revisit later. --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 1be8306ea1..cbb3fdfa6b 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -429,7 +429,6 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 8393) and 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 10836) Change the summary on creating of new section == API changes since 1.10 == diff --git a/includes/Article.php b/includes/Article.php index 9d2909fe11..8746d5eb7b 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -1160,7 +1160,7 @@ class Article { /** * @return string Complete article text, or null if error */ - function replaceSection($section, $text, &$summary = '', $edittime = NULL) { + function replaceSection($section, $text, $summary = '', $edittime = NULL) { wfProfileIn( __METHOD__ ); if( $section == '' ) { @@ -1182,8 +1182,6 @@ class Article { if( $section == 'new' ) { # Inserting a new section $subject = $summary ? wfMsgForContent('newsectionheaderdefaultlevel',$summary) . "\n\n" : ''; - # Heading has been added to text, now wrap comment for RC linking to heading - $summary = "/* {$summary} */"; $text = strlen( trim( $oldtext ) ) > 0 ? "{$oldtext}\n\n{$subject}{$text}" : "{$subject}{$text}"; @@ -1202,7 +1200,7 @@ class Article { /** * @deprecated use Article::doEdit() */ - function insertNewArticle( $text, &$summary, $isminor, $watchthis, $suppressRC=false, $comment=false ) { + function insertNewArticle( $text, $summary, $isminor, $watchthis, $suppressRC=false, $comment=false ) { $flags = EDIT_NEW | EDIT_DEFER_UPDATES | EDIT_AUTOSUMMARY | ( $isminor ? EDIT_MINOR : 0 ) | ( $suppressRC ? EDIT_SUPPRESS_RC : 0 ); @@ -1210,8 +1208,6 @@ class Article { # If this is a comment, add the summary as headline if ( $comment && $summary != "" ) { $text = wfMsgForContent('newsectionheaderdefaultlevel',$summary) . "\n\n".$text; - # Heading has been added to text, now wrap comment for RC linking to heading - $summary = "/* {$summary} */"; } $this->doEdit( $text, $summary, $flags );