Index: trunk/phase3/RELEASE-NOTES-1.19 |
— | — | @@ -62,6 +62,8 @@ |
63 | 63 | statistics (maintenance/language/transstat.php) |
64 | 64 | * (bug 29586) Make the (next 200) links on categories link directly to |
65 | 65 | the relevant section of the category. |
| 66 | +* (bug 29109) Allow the automatic edit summary for redirect creation |
| 67 | + show the first bit of the new redirect page. |
66 | 68 | |
67 | 69 | === Bug fixes in 1.19 === |
68 | 70 | * (bug 28868) Show total pages in the subtitle of an image on the |
Index: trunk/phase3/includes/WikiPage.php |
— | — | @@ -2297,7 +2297,10 @@ |
2298 | 2298 | $rt = Title::newFromRedirect( $newtext ); |
2299 | 2299 | |
2300 | 2300 | if ( is_object( $rt ) && ( !is_object( $ot ) || !$rt->equals( $ot ) || $ot->getFragment() != $rt->getFragment() ) ) { |
2301 | | - return wfMsgForContent( 'autoredircomment', $rt->getFullText() ); |
| 2301 | + $truncatedtext = $wgContLang->truncate( |
| 2302 | + str_replace( "\n", ' ', $newtext ), |
| 2303 | + max( 0, 200 - strlen( wfMsgForContent( 'autoredircomment' ) ) ) ); |
| 2304 | + return wfMsgForContent( 'autoredircomment', $rt->getFullText(), $truncatedtext ); |
2302 | 2305 | } |
2303 | 2306 | |
2304 | 2307 | # New page autosummaries |
Index: trunk/phase3/languages/messages/MessagesQqq.php |
— | — | @@ -3930,7 +3930,7 @@ |
3931 | 3931 | # Auto-summaries |
3932 | 3932 | 'autosumm-blank' => 'The auto summary when blanking the whole page. This is not the same as deleting the page.', |
3933 | 3933 | 'autosumm-replace' => 'The auto summary when a user removes a lot of characters in the page.', |
3934 | | -'autoredircomment' => 'The auto summary when making a redirect. $1 is the page where it redirects to.', |
| 3934 | +'autoredircomment' => 'The auto summary when making a redirect. $1 is the page where it redirects to. $2 is the first X number of characters of the redirect ($2 is usually only used when end users customize the message)', |
3935 | 3935 | 'autosumm-new' => 'The auto summary when creating a new page. $1 are the first X number of characters of the new page.', |
3936 | 3936 | |
3937 | 3937 | # Size units |