|
...
|
...
|
@@ -541,8 +541,8 @@ class BTemplateLogic extends BaseLogic |
|
|
|
public function homeOrProduct($source,$source_id = 0,$is_custom = 0){
|
|
|
|
if($is_custom == 0){
|
|
|
|
if($source == BTemplate::SOURCE_HOME){
|
|
|
|
RouteMap::setRoute('index', RouteMap::SOURCE_PAGE, 0, $this->user['project_id']);
|
|
|
|
$type = RouteMap::SOURCE_INDEX;
|
|
|
|
$route = RouteMap::setRoute('index', RouteMap::SOURCE_PAGE, 0, $this->user['project_id']);
|
|
|
|
$type = RouteMap::SOURCE_PAGE;
|
|
|
|
}elseif($source == BTemplate::SOURCE_PRODUCT){
|
|
|
|
$type = RouteMap::SOURCE_PRODUCT;
|
|
|
|
}elseif($source == BTemplate::SOURCE_BLOG){
|
|
...
|
...
|
@@ -552,7 +552,6 @@ class BTemplateLogic extends BaseLogic |
|
|
|
}else{
|
|
|
|
$type = 'all';
|
|
|
|
}
|
|
|
|
$route = RouteMap::getRoute($type,$source_id,$this->user['project_id']);
|
|
|
|
}else{
|
|
|
|
$type = RouteMap::SOURCE_MODULE;
|
|
|
|
$route = RouteMap::getRoute($type,$source_id,$this->user['project_id']);
|
...
|
...
|
|