summaryrefslogtreecommitdiff
path: root/protected/modules/cms
diff options
context:
space:
mode:
authorPatrick Seeger <pseeger@ccwn.org>2012-06-26 16:59:26 +0200
committerPatrick Seeger <pseeger@ccwn.org>2012-06-26 16:59:26 +0200
commitd7f3ac205ced0e1f1c26599b277cbfb988e48900 (patch)
treefa2f976c67ee8d47146d07689982607dcaf92d3b /protected/modules/cms
parent66e981bd3d3f9946afed0efbcaf8efa7907c530f (diff)
Anzeige optimiert, Vereine und Veranstaltungen veröffentlicht
Diffstat (limited to 'protected/modules/cms')
-rw-r--r--protected/modules/cms/models/Sitecontent.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/protected/modules/cms/models/Sitecontent.php b/protected/modules/cms/models/Sitecontent.php
index bcd1385..e63ace2 100644
--- a/protected/modules/cms/models/Sitecontent.php
+++ b/protected/modules/cms/models/Sitecontent.php
@@ -89,4 +89,12 @@ class Sitecontent extends CActiveRecord
}
return parent::beforeSave();
}
+ public function scopes()
+ {
+ return array(
+ 'published'=>array(
+ 'condition'=>'1=1',
+ ),
+ );
+ }
}