From 90c4d7adb8293b2ae34f76940108ac0e1c865b65 Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Fri, 21 Dec 2001 01:43:00 +0000 Subject: [PATCH] Fix bug #495579 git-svn-id: file:///svn/phpbb/trunk@1651 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/admin/admin_styles.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/phpBB/admin/admin_styles.php b/phpBB/admin/admin_styles.php index 9d311a09ef..11e84c3a89 100644 --- a/phpBB/admin/admin_styles.php +++ b/phpBB/admin/admin_styles.php @@ -129,7 +129,7 @@ switch( $mode ) { while( $sub_dir = @readdir($dir) ) { - if( $sub_dir != "." && $sub_dir != ".." && $sub_dir != "CVS" ) + if( !is_file($phpbb_root_path . 'templates/' .$sub_dir) && !is_link($phpbb_root_path . 'templates/' .$sub_dir) && $sub_dir != "." && $sub_dir != ".." && $sub_dir != "CVS" ) { if( @file_exists($phpbb_root_dir . "templates/" . $sub_dir . "/theme_info.cfg") ) { @@ -544,7 +544,7 @@ switch( $mode ) $s_template_select = ''; while( $file = @readdir($dir) ) { - if( $file != "." && $file != ".." && $file != "CVS" ) + if( !is_file($phpbb_root_path . 'templates/' . $file) && !is_link($phpbb_root_path . 'templates/' .$file) && $file != "." && $file != ".." && $file != "CVS" ) { $s_template_select .= '\n"; }