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

Back to archive index

Minahito minah****@users*****
2006年 10月 14日 (土) 02:50:13 JST


Index: xoops2jp/html/modules/base/actions/SearchResultsAction.class.php
diff -u xoops2jp/html/modules/base/actions/SearchResultsAction.class.php:1.1.2.10.2.1 xoops2jp/html/modules/base/actions/SearchResultsAction.class.php:1.1.2.10.2.2
--- xoops2jp/html/modules/base/actions/SearchResultsAction.class.php:1.1.2.10.2.1	Thu Oct  5 18:06:25 2006
+++ xoops2jp/html/modules/base/actions/SearchResultsAction.class.php	Sat Oct 14 02:50:13 2006
@@ -96,7 +96,18 @@
 	
 	function _doSearch(&$client, &$xoopsUser, &$params)
 	{
-		return $client->call('searchItems', $params);
+		$root =& XCube_Root::getSingleton();
+		$timezone = $root->mContext->getXoopsConfig('server_TZ') * 3600;
+		
+		$results = $client->call('searchItems', $params);
+		
+		foreach (array_keys($results) as $key) {
+			if ($results[$key]['time'] > 0) {
+				$results[$key]['time'] = $results[$key]['time'] + $timezone;
+			}
+		}
+		
+		return $results;
 	}
 	
 	function execute(&$controller, &$xoopsUser)


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