浏览代码

Merge branch 'master' of https://github.com/fusionpbx/fusionpbx

reliberate 9 年之前
父节点
当前提交
8faf76cc6c
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 4 2
      resources/classes/domains.php

+ 4 - 2
resources/classes/domains.php

@@ -332,8 +332,10 @@
 				}
 
 			//update config.lua
-				$obj = new scripts;
-				$obj->write_config();
+				if (file_exists($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/app/scripts/resources/classes/scripts.php')) {
+					$obj = new scripts;
+					$obj->write_config();
+				}
 
 			//clear the session variables
 				unset($_SESSION['domain']);