* @param int $diff The xor of the old and new bitfields.
* @param array $arr The array to update.
*/
- function checkItem ( $desc, $field, $diff, $new, $arr )
- {
+ function checkItem ( $desc, $field, $diff, $new, $arr ) {
if ( $diff & $field ) {
$arr [ ( $new & $field ) ? 0 : 1 ][] = $desc;
}
* @param int $o The old bitfield.
* @return An array as described above.
*/
- function getChanges ( $n, $o )
- {
+ function getChanges ( $n, $o ) {
$diff = $n ^ $o;
$ret = array ( 0 => array(), 1 => array(), 2 => array() );
* @param int $obitfield The old bitfield for the revision.
* @param String $comment The comment associated with the change.
*/
- function getLogMessage ( $count, $nbitfield, $obitfield, $comment )
- {
+ function getLogMessage ( $count, $nbitfield, $obitfield, $comment ) {
$s = '';
$changes = $this->getChanges( $nbitfield, $obitfield );
$reason = $this->getLogMessage ( $count, $nbitfield, $obitfield, $comment );
- // FIXME: do this better
if( $param=='logid' ) {
$params = array( implode( ',', $items) );
$log->addEntry( 'event', $title, $reason, $params );