summaryrefslogtreecommitdiff
path: root/protected/modules/cms/models/Cms.php
diff options
context:
space:
mode:
Diffstat (limited to 'protected/modules/cms/models/Cms.php')
-rw-r--r--protected/modules/cms/models/Cms.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/protected/modules/cms/models/Cms.php b/protected/modules/cms/models/Cms.php
index 691ca0c..885e589 100644
--- a/protected/modules/cms/models/Cms.php
+++ b/protected/modules/cms/models/Cms.php
@@ -62,9 +62,10 @@ class Cms {
$sitecontent = Sitecontent::model()->findByAttributes(array('id'=> $id));
$childs = $sitecontent->childs;
if($childs) {
+ $tmp=array();
foreach($sitecontent->childs as $child) {
Yii::trace("Lala","Debug");
- $tmp = array(array('label'=>$child->title, 'url'=>array('/cms/sitecontent/view', 'page'=>$child->title_url)));
+ $tmp = array_merge($tmp,array(array('label'=>$child->title, 'url'=>array('/cms/sitecontent/view', 'page'=>$child->title_url))));
}
}
return $tmp;