r59871 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r59870‎ | r59871 | r59872 >
Date:03:29, 9 December 2009
Author:nad
Status:deferred
Tags:
Comment:
pass operator list to getRecords
Modified paths:
  • /trunk/extensions/RecordAdmin/RecordAdmin_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/RecordAdmin/RecordAdmin_body.php
@@ -321,7 +321,7 @@
322322 /**
323323 * Return an array of records given type and other criteria
324324 */
325 - function getRecords( $type, $posted, $wpTitle = '', $invert = false, $orderby = 'created desc' ) {
 325+ function getRecords( $type, $posted, $operator, $wpTitle = '', $invert = false, $orderby = 'created desc' ) {
326326 global $wgRequest;
327327
328328 # If the page is already rendered, don't run this query
@@ -861,7 +861,7 @@
862862 $tmp = $this->type;
863863 $this->preProcessForm( $type );
864864 $this->examineForm();
865 - $records = $this->getRecords( $type, $filter, $title, $invert, $orderby );
 865+ $records = $this->getRecords( $type, $filter, $op, $title, $invert, $orderby );
866866 if ( $count ) while ( count( $records ) > $count ) array_pop( $records );
867867 $table = $this->renderRecords( $records, $cols, $sortable, $template, $name, $export );
868868 $this->type = $tmp;

Status & tagging log