mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
Fix bug #495579
git-svn-id: file:///svn/phpbb/trunk@1651 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
df2f8692f0
commit
90c4d7adb8
1 changed files with 3 additions and 3 deletions
|
@ -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";
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue