This commit is contained in:
parent
224fbd4988
commit
014b2a3b89
1 changed files with 9 additions and 1 deletions
|
@ -44,7 +44,15 @@ class Collections extends CBCategory
|
||||||
|
|
||||||
$this->cat_tbl = "collection_categories";
|
$this->cat_tbl = "collection_categories";
|
||||||
$this->section_tbl = "collections";
|
$this->section_tbl = "collections";
|
||||||
$this->types = array('videos' => lang("Videos"),'photos' => lang("Photos"));
|
$this->types = array();
|
||||||
|
if (isSectionEnabled('videos')) {
|
||||||
|
$this->types['videos'] = lang("Videos");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (isSectionEnabled('photos')) {
|
||||||
|
$this->types['photos'] = lang("Photos");
|
||||||
|
}
|
||||||
|
|
||||||
ksort($this->types);
|
ksort($this->types);
|
||||||
$this->setting_up_collections();
|
$this->setting_up_collections();
|
||||||
$this->init_actions();
|
$this->init_actions();
|
||||||
|
|
Loading…
Add table
Reference in a new issue