Fill in defaults for omitted parameters to RecentChange::sendToUDP
authorOri Livneh <ori@wikimedia.org>
Thu, 29 Aug 2013 20:24:35 +0000 (13:24 -0700)
committerOri Livneh <ori@wikimedia.org>
Thu, 29 Aug 2013 20:36:32 +0000 (13:36 -0700)
commit23254c1eca50ca1929852c9f8a5c97723b911f04
tree2f0fc334821f63a1606b1e847665019ba3dedaec
parentbc9fc170c50960355ac6e946ee0b617b7fdf79b5
Fill in defaults for omitted parameters to RecentChange::sendToUDP

Not all callers of RecentChange::sendToUDP pass all the parameters -- which is
to be expected, since the sendToUDP's signature specifies the empty string as
default. It is not correct to leave the values empty, though, since they are
used to construct the logging URL. When the parameters are unset, the correct
behavior should be to fill in defaults from $wgRC2UDP*, as was the case prior
to I270bde418. This patch reverts to the old, correct behavior.

Change-Id: I4570473ae7382e602292e58a41e440325a65a275
includes/RecentChange.php