浏览代码

The local override solution I put into conf.pl was completely (and poorly) over-engineered. Thijs suggested an alternate method, which I have used here instead. Thanks Thijs.

This will let you edit the override file without having to re-run conf.pl.
tassium 23 年之前
父节点
当前提交
0fa19ee2bf
共有 1 个文件被更改,包括 1 次插入8 次删除
  1. 1 8
      config/conf.pl

+ 1 - 8
config/conf.pl

@@ -2667,14 +2667,7 @@ sub save_data {
 		print CF "\$use_smtp_tls = $use_smtp_tls;\n";
 
 	    print CF "\n";
-
-		if ( open(LOCAL,"config_local.php") ) {
-		  # A config_local.php file exists - add it to the bottom of config.php
-		  while ( $line = <LOCAL> ) {
-		    print CF $line;
-		  }
-		  close LOCAL;
-		}
+		print CF "\@include SM_PATH . 'config/config_local.php';\n";
     
 		print CF "\n/**\n";
 	    print CF " * Make sure there are no characters after the PHP closing\n";