r110050 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r110049‎ | r110050 | r110051 >
Date:09:22, 26 January 2012
Author:jeroendedauw
Status:ok
Tags:
Comment:
fix default limit
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/includes/SMW_QueryProcessor.php (modified) (history)
  • /trunk/extensions/SemanticMediaWiki/includes/parserhooks/SMW_SetRecurringEvent.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/includes/SMW_QueryProcessor.php
@@ -509,7 +509,7 @@
510510
511511 $params['limit'] = new Parameter( 'limit', Parameter::TYPE_INTEGER );
512512 $params['limit']->setMessage( 'smw_paramdesc_limit' );
513 - $params['limit']->setDefault( 20 );
 513+ $params['limit']->setDefault( $GLOBALS['smwgQDefaultLimit'] );
514514
515515 $params['sort'] = new ListParameter( 'sort' );
516516 $params['sort']->setMessage( 'smw-paramdesc-sort' );
Index: trunk/extensions/SemanticMediaWiki/includes/parserhooks/SMW_SetRecurringEvent.php
@@ -257,7 +257,7 @@
258258
259259 // Handle the 'include' dates as well.
260260 $all_date_strings = array_filter( array_merge( $all_date_strings, $included_dates ) );
261 -
 261+
262262 return array( $property_name, $all_date_strings, $unused_params );
263263 }
264264

Status & tagging log