r45736 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r45735‎ | r45736 | r45737 >
Date:18:10, 14 January 2009
Author:aaron
Status:ok
Tags:
Comment:
Tweak $udp param
Modified paths:
  • /trunk/phase3/includes/LogPage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/LogPage.php
@@ -45,12 +45,12 @@
4646 * @param string $type One of '', 'block', 'protect', 'rights', 'delete',
4747 * 'upload', 'move'
4848 * @param bool $rc Whether to update recent changes as well as the logging table
49 - * @param bool $udp Whether to send to the UDP feed
 49+ * @param bool $udp Whether to send to the UDP feed if not to RC
5050 */
51 - public function __construct( $type, $rc = true, $udp = true ) {
 51+ public function __construct( $type, $rc = true, $udp = 'UDP' ) {
5252 $this->type = $type;
5353 $this->updateRecentChanges = $rc;
54 - $this->sendToUDP = $udp;
 54+ $this->sendToUDP = ($udp == 'UDP');
5555 }
5656
5757 protected function saveContent() {

Status & tagging log