[xoops-cvslog 3722] CVS update: xoops2jp/html/modules/base/actions

Back to archive index

Minahito minah****@users*****
2006年 7月 27日 (木) 18:31:51 JST


Index: xoops2jp/html/modules/base/actions/SearchShowallAction.class.php
diff -u xoops2jp/html/modules/base/actions/SearchShowallAction.class.php:1.1.2.2 xoops2jp/html/modules/base/actions/SearchShowallAction.class.php:1.1.2.3
--- xoops2jp/html/modules/base/actions/SearchShowallAction.class.php:1.1.2.2	Sun May 28 14:07:29 2006
+++ xoops2jp/html/modules/base/actions/SearchShowallAction.class.php	Thu Jul 27 18:31:51 2006
@@ -1,4 +1,8 @@
 <?php
+/**
+ * @package Legacy
+ * @version $Id$
+ */
 
 if (!defined('XOOPS_ROOT_PATH')) exit();
 
@@ -30,16 +34,13 @@
 	{
 		parent::executeViewIndex($controller, $xoopsUser, $render);
 		
-		//
-		// TODO remove Magic number '20'
-		//
-		$prevStart = $this->mActionForm->get('start') - 20;
+		$prevStart = $this->mActionForm->get('start') - LEGACY_SEARCH_DEFAULT_OFFSET;
 		if ($prevStart < 0) {
 			$prevStart = 0;
 		}
 		
 		$render->setAttribute('prevStart', $prevStart);
-		$render->setAttribute('nextStart', $this->mActionForm->get('start') + 20);
+		$render->setAttribute('nextStart', $this->mActionForm->get('start') + LEGACY_SEARCH_DEFAULT_OFFSET);
 	}
 }
 


xoops-cvslog メーリングリストの案内
Back to archive index