diff options
| author | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-12-21 01:43:00 +0000 |
|---|---|---|
| committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-12-21 01:43:00 +0000 |
| commit | 90c4d7adb8293b2ae34f76940108ac0e1c865b65 (patch) | |
| tree | fc2d7fbc4c3cf99e8cd995310e1e942ae1c03b6c /phpBB/admin/admin_styles.php | |
| parent | df2f8692f083b3b34e6539abe6935e168954cd27 (diff) | |
| download | forums-90c4d7adb8293b2ae34f76940108ac0e1c865b65.tar forums-90c4d7adb8293b2ae34f76940108ac0e1c865b65.tar.gz forums-90c4d7adb8293b2ae34f76940108ac0e1c865b65.tar.bz2 forums-90c4d7adb8293b2ae34f76940108ac0e1c865b65.tar.xz forums-90c4d7adb8293b2ae34f76940108ac0e1c865b65.zip | |
Fix bug #495579
git-svn-id: file:///svn/phpbb/trunk@1651 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/admin/admin_styles.php')
| -rw-r--r-- | phpBB/admin/admin_styles.php | 6 |
1 files 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 = '<select name="template_name">'; 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" ) { if($file == $selected['template_name']) { @@ -784,7 +784,7 @@ switch( $mode ) $s_template_select = '<select name="export_template">'; 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 .= '<option value="' . $file . '">' . $file . "</option>\n"; } |
