Explorar o código

Only call the scripts class if its installed.

markjcrane %!s(int64=9) %!d(string=hai) anos
pai
achega
ace751b795
Modificáronse 1 ficheiros con 4 adicións e 2 borrados
  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']);