Difference between revisions of "RC-Summary.php"
From Organic Design wiki
(Back to 0-based array) |
(Only send data if first item changed) |
||
Line 20: | Line 20: | ||
$n = $wgContLang->getNsText( $row['rc_namespace'] ); | $n = $wgContLang->getNsText( $row['rc_namespace'] ); | ||
$a = $n ? "$n:".$row['rc_title'] : $row['rc_title']; | $a = $n ? "$n:".$row['rc_title'] : $row['rc_title']; | ||
− | $changes[++$i] = "item$i= | + | $id = $row['rc_id']; |
+ | $changes[++$i] = "item$i=$id,$t,".$row['rc_user_text'].",$a,".$row['rc_comment']; | ||
+ | if ($i == 0) $first = $id; | ||
} | } | ||
# If SWF format requested, remove all view-transforms and replace with self | # If SWF format requested, remove all view-transforms and replace with self | ||
− | if ( $_REQUEST['SWF'] ) { | + | if ( $swf = $_REQUEST['SWF'] ) { |
xwRemoveElement( $properties, 'view' ); | xwRemoveElement( $properties, 'view' ); | ||
xwSetProperty($properties, 'view', $tTitle); | xwSetProperty($properties, 'view', $tTitle); | ||
− | $$title = join( '&', $changes ); | + | $$title = $swf == $first ? 'item2=testing' : join( '&', $changes ); |
} | } | ||
# SWF not requested, render a nice table for embedding | # SWF not requested, render a nice table for embedding |
Revision as of 07:51, 27 February 2006
<?
- Appends article with a compact list of last 5 non-minor changes
global $wgLang, $wgContLang, title; if ( $event == 'view' ) { $article =
', $changes ); } } ?>