From: Andrew Garrett Date: Thu, 23 Nov 2006 11:15:46 +0000 (+0000) Subject: As per Rob's suggestion, remove autosummaries for short new pages, and replace them... X-Git-Tag: 1.31.0-rc.0~55105 X-Git-Url: https://git.cyclocoop.org/?a=commitdiff_plain;h=ecb1a63d7b64a3ee6f3f8b1026ec5a9a54537501;p=lhc%2Fweb%2Fwiklou.git As per Rob's suggestion, remove autosummaries for short new pages, and replace them with autosummaries for all new pages. On more reflection, this makes a lot more sense --- diff --git a/includes/Article.php b/includes/Article.php index 515ba40caf..e5e3414d6b 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -2712,8 +2712,8 @@ class Article { if ($summary) return $summary; - #Long new page autosummaries - if ($flags & EDIT_NEW && strlen($newtext) > 500) { + #New page autosummaries + if ($flags & EDIT_NEW && strlen($newtext)) { #If they're making a new article, give its text, truncated, in the summary. global $wgContLang; $truncatedtext = $wgContLang->truncate( $newtext, max( 0, 200 - @@ -2721,15 +2721,6 @@ class Article { $summary = wfMsgForContent( 'autosumm-new', $truncatedtext ); } - #Short new page autosummaries - if ($flags & EDIT_NEW && strlen($newtext) <= 500) { - #If they're making a new short article, give its text in the summary. - global $wgContLang; - $truncatedtext = $wgContLang->truncate( $newtext, max( 0, 200 - - strlen( wfMsgForContent( 'autosumm-shortnew') ) ), '...' ); - $summary = wfMsgForContent( 'autosumm-shortnew', $truncatedtext ); - } - if ($summary) return $summary; diff --git a/languages/messages/MessagesEn.php b/languages/messages/MessagesEn.php index a4da4b80a7..846e256048 100644 --- a/languages/messages/MessagesEn.php +++ b/languages/messages/MessagesEn.php @@ -2613,7 +2613,6 @@ Please confirm that really want to recreate this page.', 'autosumm-blank' => 'Removing all content from page', 'autosumm-replace' => 'Replacing page with \'$1\'', 'autoredircomment' => 'Redirecting to [[$1]]', # This should be changed to the new naming convention, but existed beforehand. -'autosumm-shortnew' => 'Short New page: $1', 'autosumm-new' => 'New page: $1', # Autoblock whitelist