瀏覽代碼

fix path of api file

Lamrani Abdel 2 年之前
父節點
當前提交
04ba3e8883
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      htdocs/modulebuilder/index.php

+ 1 - 0
htdocs/modulebuilder/index.php

@@ -884,6 +884,7 @@ if ($dirins && $action == 'confirm_removefile' && !empty($module)) {
 
 		//check when we want delete api_file
 		if (strpos($relativefilename, 'api') !== false) {
+			$file_api = $destdir.'/class/api_'.strtolower($module).'.class.php';
 			$removeFile = removeObjectFromApiFile($file_api, $objectname, $module);
 			$var = getFromFile($file_api, '/*begin methods CRUD*/', '/*end methods CRUD*/');
 			if (str_word_count($var) == 0) {