mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-07 09:13:02 +02:00
Adding support of independant uploadable categories
git-svn-id: http://piwigo.org/svn/trunk@38 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
+6
-4
@@ -103,9 +103,10 @@ if ( isset( $page['cat'] ) and is_numeric( $page['cat'] ) )
|
||||
{
|
||||
check_restrictions( $page['cat'] );
|
||||
$result = get_cat_info( $page['cat'] );
|
||||
$page['cat_dir'] = $result['dir'];
|
||||
$page['cat_site_id'] = $result['site_id'];
|
||||
$page['cat_name'] = $result['name'];
|
||||
$page['cat_dir'] = $result['dir'];
|
||||
$page['cat_site_id'] = $result['site_id'];
|
||||
$page['cat_name'] = $result['name'];
|
||||
$page['cat_uploadable'] = $result['uploadable'];
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -113,7 +114,8 @@ else
|
||||
}
|
||||
if ( $access_forbidden == true
|
||||
or $page['cat_site_id'] != 1
|
||||
or !$conf['upload_available'] )
|
||||
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' ).'">';
|
||||
|
||||
Reference in New Issue
Block a user