mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-03 15:27:42 +02:00
Fix bug #495579
git-svn-id: file:///svn/phpbb/trunk@1651 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -129,7 +129,7 @@ switch( $mode )
|
|||||||
{
|
{
|
||||||
while( $sub_dir = @readdir($dir) )
|
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") )
|
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">';
|
$s_template_select = '<select name="template_name">';
|
||||||
while( $file = @readdir($dir) )
|
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'])
|
if($file == $selected['template_name'])
|
||||||
{
|
{
|
||||||
@@ -784,7 +784,7 @@ switch( $mode )
|
|||||||
$s_template_select = '<select name="export_template">';
|
$s_template_select = '<select name="export_template">';
|
||||||
while( $file = @readdir($dir) )
|
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";
|
$s_template_select .= '<option value="' . $file . '">' . $file . "</option>\n";
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user