Change conf.pl to not overwrite $addrbook_dsn every time its run
[squirrelmail.git] / config / conf.pl
index 3be511ea33203eb7c8d5827aabe8958235e958c2..f940b29b064a988a99d51b717aa5dca653de7731 100755 (executable)
@@ -1953,6 +1953,11 @@ sub save_data {
            print CF ");\n";
            print CF "\n";
         }
+
+        if (defined $addrbook_dsn) {
+            print CF "global \$addrbook_dsn;\n";
+            print CF "\$addrbook_dsn = $addrbook_dsn;\n\n";
+        }
      
         print CF "/**\n";
         print CF " * Make sure there are no characters after the PHP closing\n";