fixed bug that added index.php as a theme when autodetecting
authorlkehresman <lkehresman@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 1 Nov 2000 21:53:46 +0000 (21:53 +0000)
committerlkehresman <lkehresman@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 1 Nov 2000 21:53:46 +0000 (21:53 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@830 7612ce4b-ef26-0410-bec9-ea0150e637f0

config/conf.pl

index 0be31cf..4d47933 100755 (executable)
@@ -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 = <STDIN>;
+                  $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 = <STDIN>;
-               $nm =~ s/[\n|\r]//g;
-               $theme_name[$#theme_name+1] = $nm;
-               $theme_path[$#theme_path+1] = $filename;
             }
             $cnt++;
          }