Index: trunk/phase3/includes/WikiPage.php |
— | — | @@ -2299,7 +2299,10 @@ |
2300 | 2300 | if ( is_object( $rt ) && ( !is_object( $ot ) || !$rt->equals( $ot ) || $ot->getFragment() != $rt->getFragment() ) ) { |
2301 | 2301 | $truncatedtext = $wgContLang->truncate( |
2302 | 2302 | str_replace( "\n", ' ', $newtext ), |
2303 | | - max( 0, 200 - strlen( wfMsgForContent( 'autoredircomment' ) ) ) ); |
| 2303 | + max( 0, 250 |
| 2304 | + - strlen( wfMsgForContent( 'autoredircomment' ) ) |
| 2305 | + - strlen( $rt->getFullText() ) |
| 2306 | + ) ); |
2304 | 2307 | return wfMsgForContent( 'autoredircomment', $rt->getFullText(), $truncatedtext ); |
2305 | 2308 | } |
2306 | 2309 | |