aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--admin/create_listing_file.php6
-rw-r--r--admin/include/functions.php11
2 files changed, 11 insertions, 6 deletions
diff --git a/admin/create_listing_file.php b/admin/create_listing_file.php
index 33da67170..48108afc8 100644
--- a/admin/create_listing_file.php
+++ b/admin/create_listing_file.php
@@ -258,8 +258,10 @@ function get_dirs($basedir, $indent, $level)
{
if ($file != '.'
and $file != '..'
- and is_dir ($basedir.'/'.$file)
- and $file != 'thumbnail')
+ and $file != 'thumbnail'
+ and $file != 'high'
+ and $file != 'representative'
+ and is_dir ($basedir.'/'.$file))
{
array_push($fs_dirs, $file);
if (!preg_match('/^[a-zA-Z0-9-_.]+$/', $file))
diff --git a/admin/include/functions.php b/admin/include/functions.php
index 002c1747a..3feebdb22 100644
--- a/admin/include/functions.php
+++ b/admin/include/functions.php
@@ -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 );
}