From: Ævar Arnfjörð Bjarmason Date: Thu, 7 Jul 2005 14:10:00 +0000 (+0000) Subject: * Not showing " : " in recentchanges if the rcComment is empty X-Git-Tag: 1.5.0beta4~209 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=cf59db8b61a796c3ab75ffddbae7caa689555ef1;p=lhc%2Fweb%2Fwiklou.git * Not showing " : " in recentchanges if the rcComment is empty * Documentation --- diff --git a/includes/LogPage.php b/includes/LogPage.php index c4cb772961..ef0dce7928 100644 --- a/includes/LogPage.php +++ b/includes/LogPage.php @@ -38,7 +38,7 @@ class LogPage { /** * Constructor * - * @param string $type One of 'block', 'protect', 'rights', 'delete', + * @param string $type One of '', 'block', 'protect', 'rights', 'delete', * 'upload', 'move' */ function LogPage( $type ) { @@ -73,7 +73,10 @@ class LogPage { $titleObj = Title::makeTitle( NS_SPECIAL, 'Log/' . $this->type ); $rcComment = $this->actionText; if( '' != $this->comment ) { - $rcComment .= ': ' . $this->comment; + if ($rcComment == '') + $rcComment = $this->comment; + else + $rcComment .= ': ' . $this->comment; } RecentChange::notifyLog( $now, $titleObj, $wgUser, $rcComment ); @@ -201,7 +204,7 @@ class LogPage { /** * Add a log entry - * @param string $action one of 'block', 'protect', 'rights', 'delete', 'upload', 'move', 'move_redir' + * @param string $action one of '', 'block', 'protect', 'rights', 'delete', 'upload', 'move', 'move_redir' * @param object &$target A title object. * @param string $comment Description associated * @param array $params Parameters passed later to wfMsg.* functions