r24081 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r24080‎ | r24081 | r24082 >
Date:09:47, 14 July 2007
Author:vrandezo
Status:old
Tags:
Comment:
Changed limit settings to the appropriate limits
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/specials/SearchTriple/SMW_SpecialSearchByAttribute.php (modified) (history)
  • /trunk/extensions/SemanticMediaWiki/specials/SearchTriple/SMW_SpecialSearchByRelation.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/specials/SearchTriple/SMW_SpecialSearchByAttribute.php
@@ -24,7 +24,7 @@
2525 class SMW_SearchByAttribute {
2626
2727 static function execute($query = '') {
28 - global $wgRequest, $wgOut, $wgUser, $smwgQMaxLimit;
 28+ global $wgRequest, $wgOut, $wgUser, $smwgQMaxInlineLimit;
2929 $skin = $wgUser->getSkin();
3030
3131 // get the GET parameters
@@ -92,8 +92,8 @@
9393 $first = false;
9494 } else
9595 $navigation .= ' | ';
96 - if ($l > $smwgQMaxLimit) {
97 - $l = $smwgQMaxLimit;
 96+ if ($l > $smwgQMaxInlineLimit) {
 97+ $l = $smwgQMaxInlineLimit;
9898 $max = true;
9999 }
100100 if ( $limit != $l ) {
Index: trunk/extensions/SemanticMediaWiki/specials/SearchTriple/SMW_SpecialSearchByRelation.php
@@ -26,7 +26,7 @@
2727 class SMW_SearchByRelation {
2828
2929 static function execute($query = '') {
30 - global $wgRequest, $wgOut, $wgUser, $smwgQMaxLimit;
 30+ global $wgRequest, $wgOut, $wgUser, $smwgQMaxInlineLimit;
3131 $skin = $wgUser->getSkin();
3232
3333 // get the GET parameters
@@ -91,8 +91,8 @@
9292 $first = false;
9393 } else
9494 $navigation .= ' | ';
95 - if ($l > $smwgQMaxLimit) {
96 - $l = $smwgQMaxLimit;
 95+ if ($l > $smwgQMaxInlineLimit) {
 96+ $l = $smwgQMaxInlineLimit;
9797 $max = true;
9898 }
9999 if ( $limit != $l ) {

Status & tagging log