Merge "Update IRCLineURL hook to include RecentChange object"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Mon, 31 Mar 2014 10:24:30 +0000 (10:24 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Mon, 31 Mar 2014 10:24:30 +0000 (10:24 +0000)
docs/hooks.txt
includes/rcfeed/IRCColourfulRCFeedFormatter.php

index e4037e6..3d1ba7e 100644 (file)
@@ -1441,6 +1441,7 @@ $user: user (object) whose email is being invalidated
 Callee may modify $url and $query, URL will be constructed as $url . $query
 &$url: URL to index.php
 &$query: Query string
+$rc: RecentChange object that triggered url generation
 
 'IsFileCacheable': Override the result of Article::isFileCacheable() (if true)
 $article: article (object) being checked
index 22ddfb8..c2e5b03 100644 (file)
@@ -56,7 +56,7 @@ class IRCColourfulRCFeedFormatter implements RCFeedFormatter {
                                $query .= '&rcid=' . $attribs['rc_id'];
                        }
                        // HACK: We need this hook for WMF's secure server setup
-                       wfRunHooks( 'IRCLineURL', array( &$url, &$query ) );
+                       wfRunHooks( 'IRCLineURL', array( &$url, &$query, $rc ) );
                        $url .= $query;
                }