Index: trunk/phase3/includes/SpecialRevisiondelete.php |
— | — | @@ -1344,8 +1344,7 @@ |
1345 | 1345 | * @param int $diff The xor of the old and new bitfields. |
1346 | 1346 | * @param array $arr The array to update. |
1347 | 1347 | */ |
1348 | | - function checkItem ( $desc, $field, $diff, $new, $arr ) |
1349 | | - { |
| 1348 | + function checkItem ( $desc, $field, $diff, $new, $arr ) { |
1350 | 1349 | if ( $diff & $field ) { |
1351 | 1350 | $arr [ ( $new & $field ) ? 0 : 1 ][] = $desc; |
1352 | 1351 | } |
— | — | @@ -1363,8 +1362,7 @@ |
1364 | 1363 | * @param int $o The old bitfield. |
1365 | 1364 | * @return An array as described above. |
1366 | 1365 | */ |
1367 | | - function getChanges ( $n, $o ) |
1368 | | - { |
| 1366 | + function getChanges ( $n, $o ) { |
1369 | 1367 | $diff = $n ^ $o; |
1370 | 1368 | $ret = array ( 0 => array(), 1 => array(), 2 => array() ); |
1371 | 1369 | |
— | — | @@ -1393,8 +1391,7 @@ |
1394 | 1392 | * @param int $obitfield The old bitfield for the revision. |
1395 | 1393 | * @param String $comment The comment associated with the change. |
1396 | 1394 | */ |
1397 | | - function getLogMessage ( $count, $nbitfield, $obitfield, $comment ) |
1398 | | - { |
| 1395 | + function getLogMessage ( $count, $nbitfield, $obitfield, $comment ) { |
1399 | 1396 | $s = ''; |
1400 | 1397 | $changes = $this->getChanges( $nbitfield, $obitfield ); |
1401 | 1398 | |
— | — | @@ -1437,7 +1434,6 @@ |
1438 | 1435 | |
1439 | 1436 | $reason = $this->getLogMessage ( $count, $nbitfield, $obitfield, $comment ); |
1440 | 1437 | |
1441 | | - // FIXME: do this better |
1442 | 1438 | if( $param=='logid' ) { |
1443 | 1439 | $params = array( implode( ',', $items) ); |
1444 | 1440 | $log->addEntry( 'event', $title, $reason, $params ); |