From cf59db8b61a796c3ab75ffddbae7caa689555ef1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Thu, 7 Jul 2005 14:10:00 +0000 Subject: [PATCH] * Not showing " : " in recentchanges if the rcComment is empty * Documentation --- includes/LogPage.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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 -- 2.20.1