From: Aaron Schulz Date: Wed, 21 Jan 2009 20:47:59 +0000 (+0000) Subject: Show title/rev in IRC (bug 16604) X-Git-Tag: 1.31.0-rc.0~43318 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/journal.php?a=commitdiff_plain;h=c482d97ac6f5256df9e233a991048047a847ce46;p=lhc%2Fweb%2Fwiklou.git Show title/rev in IRC (bug 16604) --- diff --git a/includes/PatrolLog.php b/includes/PatrolLog.php index 5e97892485..978821c1a1 100644 --- a/includes/PatrolLog.php +++ b/includes/PatrolLog.php @@ -39,12 +39,8 @@ class PatrolLog { * @return string */ public static function makeActionText( $title, $params, $skin ) { - # This is a bit of a hack, but...if $skin is not a Skin, then *do nothing* - # -- this is fine, because the action text we would be queried for under - # these conditions would have gone into recentchanges, which we aren't - # supposed to be updating + list( $cur, /* $prev */, $auto ) = $params; if( is_object( $skin ) ) { - list( $cur, /* $prev */, $auto ) = $params; # Standard link to the page in question $link = $skin->makeLinkObj( $title ); if( $title->exists() ) { @@ -62,7 +58,8 @@ class PatrolLog { # Put it all together return wfMsgHtml( 'patrol-log-line', $diff, $link, $auto ); } else { - return ''; + $text = $title->getPrefixedText(); + return wfMsgForContent( 'patrol-log-line', wfMsgHtml('patrol-log-diff',$cur), "[[$text]]", '' ); } }