Преглед изворни кода

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
 			//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
 			//clear the session variables
 				unset($_SESSION['domain']);
 				unset($_SESSION['domain']);