* (bug 26187) Confirmrecreate no longer parses the edit summary
This commit is contained in:
parent
a088ec0594
commit
109423a6d9
2 changed files with 7 additions and 1 deletions
|
|
@ -66,6 +66,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
|
|||
disabling upload protection by removing it from $wgRestrictionTypes.
|
||||
* If an edit summary exceeds 250 bytes and is truncated, add an ellipse
|
||||
* (bug 26638) Database error pages display correctly in RTL languages
|
||||
* (bug 26187) Confirmrecreate no longer parses the edit summary
|
||||
|
||||
=== API changes in 1.18 ===
|
||||
* (bug 26339) Throw warning when truncating an overlarge API result
|
||||
|
|
|
|||
|
|
@ -1273,9 +1273,14 @@ HTML
|
|||
$this->showFormBeforeText();
|
||||
|
||||
if ( $this->wasDeletedSinceLastEdit() && 'save' == $this->formtype ) {
|
||||
$username = $this->lastDelete->user_name;
|
||||
$comment = $this->lastDelete->log_comment;
|
||||
|
||||
// It is better to not parse the comment at all than to have templates expanded in the middle
|
||||
// TODO: can the checkLabel be moved outside of the div so that wrapWikiMsg could be used?
|
||||
$wgOut->addHTML(
|
||||
'<div class="mw-confirm-recreate">' .
|
||||
$wgOut->parse( wfMsg( 'confirmrecreate', $this->lastDelete->user_name , $this->lastDelete->log_comment ) ) .
|
||||
wfMsgExt( 'confirmrecreate', 'parseinline', $username, "<nowiki>$comment</nowiki>" ) ) .
|
||||
Xml::checkLabel( wfMsg( 'recreate' ), 'wpRecreate', 'wpRecreate', false,
|
||||
array( 'title' => $sk->titleAttrib( 'recreate' ), 'tabindex' => 1, 'id' => 'wpRecreate' )
|
||||
) .
|
||||
|
|
|
|||
Loading…
Reference in a new issue