소스 검색

When two or more installations of SquirrelMail use symbolic links to
the plugins directory, you can configure them separately and correctly.
Removed chdir() call in conf.pl.

Tyler Akins 25 년 전
부모
커밋
5718fe38a2
1개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 3
      config/conf.pl

+ 2 - 3
config/conf.pl

@@ -348,9 +348,9 @@ while (($command ne "q") && ($command ne "Q")) {
       @files = readdir(DIR);
       $pos=0;
       @unused_plugins = ();
-      chdir ("../plugins");
       for ($i=0; $i <= $#files; $i++) {
-         if ( -d $files[$i] && $files[$i] !~ /^\./ && $files[$i] ne "CVS") {
+         if ( -d "../plugins/" . $files[$i]" && 
+	     $files[$i] !~ /^\./ && $files[$i] ne "CVS") {
             $match = 0;
             for ($k=0; $k<=$#plugins; $k++) {
                if ($plugins[$k] eq $files[$i]) {
@@ -363,7 +363,6 @@ while (($command ne "q") && ($command ne "Q")) {
             }
          }
       }
-      chdir ("../config");
       
       for ($i=0; $i<=$#unused_plugins; $i++) {
          $num = $num + 1;