r24079 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r24078‎ | r24079 | r24080 >
Date:09:32, 14 July 2007
Author:vrandezo
Status:old
Tags:
Comment:
Moved query pages to the new limit settings.
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/specials/SearchTriple/SMW_SpecialBrowse.php (modified) (history)
  • /trunk/extensions/SemanticMediaWiki/specials/SearchTriple/SMW_SpecialPageProperty.php (modified) (history)
  • /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, $smwgIQMaxLimit;
 28+ global $wgRequest, $wgOut, $wgUser, $smwgQMaxLimit;
2929 $skin = $wgUser->getSkin();
3030
3131 // get the GET parameters
@@ -92,8 +92,8 @@
9393 $first = false;
9494 } else
9595 $navigation .= ' | ';
96 - if ($l > $smwgIQMaxLimit) {
97 - $l = $smwgIQMaxLimit;
 96+ if ($l > $smwgQMaxLimit) {
 97+ $l = $smwgQMaxLimit;
9898 $max = true;
9999 }
100100 if ( $limit != $l ) {
Index: trunk/extensions/SemanticMediaWiki/specials/SearchTriple/SMW_SpecialSearchByRelation.php
@@ -26,9 +26,9 @@
2727 class SMW_SearchByRelation {
2828
2929 static function execute($query = '') {
30 - global $wgRequest, $wgOut, $wgUser, $smwgIQMaxLimit;
 30+ global $wgRequest, $wgOut, $wgUser, $smwgQMaxLimit;
3131 $skin = $wgUser->getSkin();
32 -
 32+
3333 // get the GET parameters
3434 $type = $wgRequest->getVal( 'type' );
3535 $target = $wgRequest->getVal( 'target' );
@@ -91,8 +91,8 @@
9292 $first = false;
9393 } else
9494 $navigation .= ' | ';
95 - if ($l > $smwgIQMaxLimit) {
96 - $l = $smwgIQMaxLimit;
 95+ if ($l > $smwgQMaxLimit) {
 96+ $l = $smwgQMaxLimit;
9797 $max = true;
9898 }
9999 if ( $limit != $l ) {
Index: trunk/extensions/SemanticMediaWiki/specials/SearchTriple/SMW_SpecialBrowse.php
@@ -26,7 +26,7 @@
2727 class SMW_SpecialBrowse {
2828
2929 static function execute($query = '') {
30 - global $wgRequest, $wgOut, $wgUser,$wgContLang, $smwgIQMaxLimit;
 30+ global $wgRequest, $wgOut, $wgUser,$wgContLang;
3131 $skin = $wgUser->getSkin();
3232
3333 // get the GET parameters
Index: trunk/extensions/SemanticMediaWiki/specials/SearchTriple/SMW_SpecialPageProperty.php
@@ -26,7 +26,7 @@
2727 class SMW_PageProperty {
2828
2929 static function execute($query = '') {
30 - global $wgRequest, $wgOut, $wgUser, $smwgIQMaxLimit;
 30+ global $wgRequest, $wgOut, $wgUser;
3131 $skin = $wgUser->getSkin();
3232
3333 // get the GET parameters
@@ -54,7 +54,7 @@
5555 } else {
5656 $type = '';
5757 }
58 -
 58+
5959 $limit = $wgRequest->getVal( 'limit' );
6060 if ('' == $limit) $limit = 20;
6161 $offset = $wgRequest->getVal( 'offset' );

Status & tagging log