using $wgUsePrivateIPs.
* (bug 11009) The null file (ie: /dev/null) can be configured with $wgNullFile.
Useful for overriding if the normal file isn't accessible
+* $wgRC2UDPScriptUrl can be used to set the prefix for URLs in the RC->IRC feed
+ where enabled. The default is $wgServer . $wgScript (used to effectively be
+ $wgInternalServer . $wgScript).
=== Migrated extensions ===
The following extensions are migrated into MediaWiki 1.14:
*/
$wgRC2UDPInterwikiPrefix = false;
+/**
+ * This prefix is prepended to each URL in the IRC feed. If left false, the prefix
+ * $wgServer . $wgScript is used by default. You should set this if your $wgServer
+ * or $wgScript might vary, e.g. if your wiki can be reached via both HTTP and HTTPS.
+ */
+$wgRC2UDPScriptUrl = false;
+
/**
* Set to true to omit "bot" edits (by users with the bot permission) from the
* UDP feed.
protected function getIRCLine() {
global $wgUseRCPatrol, $wgUseNPPatrol, $wgRC2UDPInterwikiPrefix, $wgLocalInterwiki,
- $wgInternalServer, $wgScript;
+ $wgServer, $wgScript, $wgRC2UDPScriptUrl;
// FIXME: Would be good to replace these 2 extract() calls with something more explicit
// e.g. list ($rc_type, $rc_id) = array_values ($this->mAttribs); [or something like that]
if( $rc_type == RC_LOG ) {
$url = '';
} else {
- // XXX: *HACK* this should use $wgServer, hacked for SSL madness --brion 2005-12-26
- $url = $wgInternalServer . $wgScript;
+ if( $wgRC2UDPScriptUrl !== false ) {
+ $url = $wgRC2UDPScriptUrl;
+ } else {
+ $url = $wgServer . $wgScript;
+ }
+
if( $rc_type == RC_NEW ) {
$url .= "?oldid=$rc_this_oldid";
} else {
$url .= "?diff=$rc_this_oldid&oldid=$rc_last_oldid";
}
+
if( $wgUseRCPatrol || ($rc_type == RC_NEW && $wgUseNPPatrol) ) {
$url .= "&rcid=$rc_id";
}