r32838 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r32837‎ | r32838 | r32839 >
Date:07:14, 6 April 2008
Author:amidaniel
Status:old
Tags:
Comment:
rev_deleted log: only show colon in log message if a comment is provided.
Modified paths:
  • /trunk/phase3/includes/SpecialRevisiondelete.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SpecialRevisiondelete.php
@@ -1412,8 +1412,13 @@
14131413 $s = $changes[2][0];
14141414 }
14151415
1416 - return wfMsg ( 'revdelete-log-message', $s, $count, $comment );
 1416+ $ret = wfMsg ( 'revdelete-log-message', $s, $count );
14171417
 1418+ if ( $comment )
 1419+ $ret .= ": $comment";
 1420+
 1421+ return $ret;
 1422+
14181423 }
14191424
14201425 /**

Status & tagging log