* Skip sidebar entries where link text is '-'
* Convert non-UTF-8 URL parameters even if referer is local
* (bug 2460) <img> width & height properly filled when resizing image
-
+* (bug 2273) deletion log comment used user interface langage
=== Caveats ===
# Touch the log!
$log = new LogPage( 'delete' );
if( $restoreAll ) {
- $reason = "";
+ $reason = '';
} else {
- $reason = wfMsg( 'undeletedrevisions', $restoreRevisions );
+ $reason = wfMsgForContent( 'undeletedrevisions', $restoreRevisions );
}
$log->addEntry( 'restore', $this->title, $reason );
# Save a null revision in the page's history notifying of the move
$nullRevision = Revision::newNullRevision( $dbw, $oldid,
- wfMsg( '1movedto2', $this->getPrefixedText(), $nt->getPrefixedText() ),
+ wfMsgForContent( '1movedto2', $this->getPrefixedText(), $nt->getPrefixedText() ),
true );
$nullRevId = $nullRevision->insertOn( $dbw );
# Save a null revision in the page's history notifying of the move
$nullRevision = Revision::newNullRevision( $dbw, $oldid,
- wfMsg( '1movedto2', $this->getPrefixedText(), $nt->getPrefixedText() ),
+ wfMsgForContent( '1movedto2', $this->getPrefixedText(), $nt->getPrefixedText() ),
true );
$nullRevId = $nullRevision->insertOn( $dbw );