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 -
$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;
'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