Authored by 周少峰

helperSearch 左侧分类修改

@@ -32,9 +32,6 @@ class HelperSearch @@ -32,9 +32,6 @@ class HelperSearch
32 //设置导航 32 //设置导航
33 private static function setListNav() 33 private static function setListNav()
34 { 34 {
35 - if (isset(self::$options['controller']) && self::$options['controller'] == 'Search') {  
36 -  
37 - }  
38 $options = self::$options; 35 $options = self::$options;
39 $cookieChannel = isset($_COOKIE['_Channel']) ? $_COOKIE['_Channel'] : 'boys'; 36 $cookieChannel = isset($_COOKIE['_Channel']) ? $_COOKIE['_Channel'] : 'boys';
40 if (isset($options['brandName']) && !empty($options['brandName'])) { 37 if (isset($options['brandName']) && !empty($options['brandName'])) {
@@ -259,12 +256,13 @@ class HelperSearch @@ -259,12 +256,13 @@ class HelperSearch
259 256
260 public static function groupSort($sort) 257 public static function groupSort($sort)
261 { 258 {
262 - $option = self::$options;  
263 - if (!isset($option['controller']) || $option['controller'] != 'Search') { 259 +
  260 + $options = self::$options;
  261 + if (isset($options['controller']) && $options['controller'] != 'Search') {
264 return array(); 262 return array();
265 } 263 }
266 //设置导航 264 //设置导航
267 - self::setListNav($option); 265 + self::setListNav($options);
268 $params = self::$params; 266 $params = self::$params;
269 $result = array( 267 $result = array(
270 'all' => array( 268 'all' => array(
@@ -304,6 +302,7 @@ class HelperSearch @@ -304,6 +302,7 @@ class HelperSearch
304 } 302 }
305 } 303 }
306 $result['list'] = $sortList; 304 $result['list'] = $sortList;
  305 +
307 return $result; 306 return $result;
308 } 307 }
309 308