[xoops-cvslog 4970] CVS update: xoops2jp/html/modules/user/actions

Back to archive index

Minahito minah****@users*****
2006年 10月 13日 (金) 14:10:17 JST


Index: xoops2jp/html/modules/user/actions/AvatarEditAction.class.php
diff -u xoops2jp/html/modules/user/actions/AvatarEditAction.class.php:1.1.2.9 xoops2jp/html/modules/user/actions/AvatarEditAction.class.php:1.1.2.9.2.1
--- xoops2jp/html/modules/user/actions/AvatarEditAction.class.php:1.1.2.9	Mon Sep 25 18:39:28 2006
+++ xoops2jp/html/modules/user/actions/AvatarEditAction.class.php	Fri Oct 13 14:10:17 2006
@@ -1,7 +1,7 @@
 <?php
 /**
  * @package user
- * @version $Id: AvatarEditAction.class.php,v 1.1.2.9 2006/09/25 09:39:28 minahito Exp $
+ * @version $Id: AvatarEditAction.class.php,v 1.1.2.9.2.1 2006/10/13 05:10:17 minahito Exp $
  */
 
 if (!defined('XOOPS_ROOT_PATH')) exit();
@@ -10,7 +10,6 @@
 require_once XOOPS_MODULE_PATH . "/user/forms/AvatarEditForm.class.php";
 require_once XOOPS_MODULE_PATH . "/user/forms/AvatarSelectForm.class.php";
 require_once XOOPS_MODULE_PATH . "/user/forms/AvatarFilterForm.class.php";
-require_once XOOPS_MODULE_PATH . "/user/class/PageNavigator.class.php";
 
 /**
  * This action handles the uploaded avatar image file.
@@ -155,16 +154,10 @@
 	 */
 	function getDefaultView(&$controller, &$xoopsUser)
 	{
-		$this->mNavi =& new User_PageNavigator("index.php?AvatarUpload", 0, XCUBE_PAGENAVI_START);
+		$this->mNavi =& new XCube_PageNavigator("index.php?AvatarUpload", XCUBE_PAGENAVI_START);
 		
-		$this->mFilter =& new User_AvatarFilterForm($this->mNavi);
-		$this->mFilter->fetch();
-		$handler =& xoops_gethandler('avatar');
-		
-		$total = $handler->getCount($this->mFilter->getCriteria());
-		
-		$this->mNavi->setTotal($total);
-		$this->mNavi->fetch();
+		$this->mFilter =& new User_AvatarFilterForm($this->mNavi, xoops_gethandler('avatar'));
+		$this->mFilter->mNavi->fetch();
 		
 		$criteria = $this->mFilter->getCriteria($this->mNavi->getStart(), $this->mNavi->getPerpage());
 		$this->mSystemAvatars =& $handler->getObjects($criteria);


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