directories "high" and "representative" are not returned anymore as
potential category directories git-svn-id: http://piwigo.org/svn/trunk@540 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
28dcfea993
commit
da836ea95f
2 changed files with 11 additions and 6 deletions
|
|
@ -740,7 +740,7 @@ function is_user_allowed( $category_id, $restrictions )
|
|||
/**
|
||||
* returns an array containing sub-directories which can be a category
|
||||
*
|
||||
* directories nammed "thumbnail" are omitted
|
||||
* directories nammed "thumbnail", "high" or "representative" are omitted
|
||||
*
|
||||
* @param string $basedir
|
||||
* @return array
|
||||
|
|
@ -753,9 +753,12 @@ function get_category_directories( $basedir )
|
|||
{
|
||||
while ( $file = readdir( $opendir ) )
|
||||
{
|
||||
if ( $file != '.' and $file != '..'
|
||||
and is_dir( $basedir.'/'.$file )
|
||||
and $file != 'thumbnail' )
|
||||
if ($file != '.'
|
||||
and $file != '..'
|
||||
and $file != 'thumbnail'
|
||||
and $file != 'high'
|
||||
and $file != 'representative'
|
||||
and is_dir($basedir.'/'.$file))
|
||||
{
|
||||
array_push( $sub_dirs, $file );
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue