Revision: 45974
Author:   aaron
Date:     2009-01-21 20:47:59 +0000 (Wed, 21 Jan 2009)

Log Message:
-----------
Show title/rev in IRC (bug 16604)

Modified Paths:
--------------
    trunk/phase3/includes/PatrolLog.php

Modified: trunk/phase3/includes/PatrolLog.php
===================================================================
--- trunk/phase3/includes/PatrolLog.php 2009-01-21 20:42:32 UTC (rev 45973)
+++ trunk/phase3/includes/PatrolLog.php 2009-01-21 20:47:59 UTC (rev 45974)
@@ -39,12 +39,8 @@
         * @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 @@
                        # 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]]", '' );
                }
        }
 



_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to