diff --git a/upload/collections.php b/upload/collections.php index 825340b8..b6897c53 100644 --- a/upload/collections.php +++ b/upload/collections.php @@ -71,6 +71,13 @@ $page = mysql_clean($_GET['page']); $get_limit = create_query_limit($page,COLLPP); $clist = $cond; $clist['limit'] = $get_limit; +if (!isSectionEnabled('photos') && isSectionEnabled('videos')) { + $clist['type'] = 'videos'; +} elseif (isSectionEnabled('photos') && !isSectionEnabled('videos')) { + $clist['type'] = 'photos'; +} elseif (!isSectionEnabled('photos') && !isSectionEnabled('videos')) { + $clist['type'] = 'none'; +} $collections = $cbcollection->get_collections($clist); Assign('collections', $collections); diff --git a/upload/styles/cb_27/layout/index.html b/upload/styles/cb_27/layout/index.html index 41ccbd2e..36dcf005 100644 --- a/upload/styles/cb_27/layout/index.html +++ b/upload/styles/cb_27/layout/index.html @@ -1,3 +1,4 @@ +{ANCHOR place="display_head_sec"}