diff options
author | plegall <plg@piwigo.org> | 2004-12-30 08:10:46 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2004-12-30 08:10:46 +0000 |
commit | e57538219f07b8d7d8766560dce846fc4a1bff12 (patch) | |
tree | 67b555bae1614bcba90442efdb717358bcf366c4 /upload.php | |
parent | ec152770fe82837a4785b790f860399b3d34329b (diff) |
- bug fixed on upload : configuration variable $conf['upload_available'] has
disappeared
- by default, new categories are not "uploadable"
- bug fixed on date displayed from Unix format : trying to find seconds
while not provided
- bug fixed on admin/waiting template to center submit button
git-svn-id: http://piwigo.org/svn/trunk@667 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | upload.php | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/upload.php b/upload.php index 286f9e051..df947598e 100644 --- a/upload.php +++ b/upload.php @@ -122,15 +122,13 @@ if ( isset( $page['cat'] ) and is_numeric( $page['cat'] ) ) $page['cat_site_id'] = $result['site_id']; $page['cat_name'] = $result['name']; $page['cat_uploadable'] = $result['uploadable']; -if ( $page['cat_site_id'] != 1 - or !$conf['upload_available'] - or !$page['cat_uploadable'] ) -{ - echo '<div style="text-align:center;">'.$lang['upload_forbidden'].'<br />'; - echo '<a href="'.add_session_id( './category.php' ).'">'; - echo $lang['thumbnails'].'</a></div>'; - exit(); -} + if ($page['cat_site_id'] != 1 or !$page['cat_uploadable']) + { + echo '<div style="text-align:center;">'.$lang['upload_forbidden'].'<br />'; + echo '<a href="'.add_session_id( './category.php' ).'">'; + echo $lang['thumbnails'].'</a></div>'; + exit(); + } } $error = array(); |