aboutsummaryrefslogtreecommitdiffstats
path: root/category.php
diff options
context:
space:
mode:
authorz0rglub <z0rglub@piwigo.org>2003-07-25 21:33:41 +0000
committerz0rglub <z0rglub@piwigo.org>2003-07-25 21:33:41 +0000
commit963e1ef71418bdad2e81e78b983f57633dbf3c18 (patch)
tree53a64ea75ff14228f3a16da3f07ca5b996f15d4c /category.php
parent1400807269662dfe7e4bc015c5d1385113c50418 (diff)
Adding support of independant uploadable categories
git-svn-id: http://piwigo.org/svn/trunk@38 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--category.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/category.php b/category.php
index 517642e22..5fe713adc 100644
--- a/category.php
+++ b/category.php
@@ -436,7 +436,9 @@ if ( isset ( $page['cat'] ) )
$vtp->setVar( $handle, 'cat_infos.cat_name', $page['title'] );
}
// upload a picture in the category
- if ( $page['cat_site_id'] == 1 and $conf['upload_available'] )
+ if ( $page['cat_site_id'] == 1
+ and $conf['upload_available']
+ and $page['cat_uploadable'] )
{
$vtp->addSession( $handle, 'upload' );
$url = './upload.php?cat='.$page['cat'].'&amp;expand='.$page['expand'];