From: lkehresman Date: Wed, 1 Nov 2000 21:53:46 +0000 (+0000) Subject: fixed bug that added index.php as a theme when autodetecting X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=5cb1d69b576f67f27dc5f75438ff61aca8d1ac52 fixed bug that added index.php as a theme when autodetecting git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@830 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/config/conf.pl b/config/conf.pl index 0be31cf7..4d47933d 100755 --- a/config/conf.pl +++ b/config/conf.pl @@ -1249,19 +1249,21 @@ sub command41 { $cnt = 0; while ($cnt <= $#files) { $filename = "../themes/" . $files[$cnt]; - $found = 0; - for ($x=0; $x <= $#theme_path; $x++) { - if ($theme_path[$x] eq $filename) { - $found = 1; + if ($filename ne "../themes/index.php") { + $found = 0; + for ($x=0; $x <= $#theme_path; $x++) { + if ($theme_path[$x] eq $filename) { + $found = 1; + } + } + if ($found != 1) { + print "** Found theme: $filename\n"; + print " What is its name? "; + $nm = ; + $nm =~ s/[\n|\r]//g; + $theme_name[$#theme_name+1] = $nm; + $theme_path[$#theme_path+1] = $filename; } - } - if ($found != 1) { - print "** Found theme: $filename\n"; - print " What is its name? "; - $nm = ; - $nm =~ s/[\n|\r]//g; - $theme_name[$#theme_name+1] = $nm; - $theme_path[$#theme_path+1] = $filename; } $cnt++; }