summaryrefslogtreecommitdiff
path: root/protected/modules/cms/models/Cms.php
diff options
context:
space:
mode:
authorPatrick Seeger <pseeger@ccwn.org>2012-04-30 16:59:07 +0200
committerPatrick Seeger <pseeger@ccwn.org>2012-04-30 16:59:07 +0200
commit10b3e68c049cc0830584e535b9273ec1c7745450 (patch)
tree59d9eb85033dbc02b33eb7a92c252d87bd835ba0 /protected/modules/cms/models/Cms.php
parent2a8b46329775b8503519d432a52dba13e8547d8e (diff)
cms fixes + suche
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;