diff --git a/htdocs/modulebuilder/index.php b/htdocs/modulebuilder/index.php index 38339d643c1..844d1377b5d 100644 --- a/htdocs/modulebuilder/index.php +++ b/htdocs/modulebuilder/index.php @@ -49,11 +49,10 @@ $dircustom = $tmp[0]; if ($dircustom && $action == 'initmodule' && $modulename) { - $srcfile = DOL_DOCUMENT_ROOT.'/modulebuilder/skeletons'; + $srcfile = DOL_DOCUMENT_ROOT.'/modulebuilder/template'; $destfile = $dircustom.'/'.$modulename; - //$result = dolCopyDir($srcfile, $destfile, 0, 0); - - dol_mkdir($destfile); + $result = dolCopyDir($srcfile, $destfile, 0, 0); + //dol_mkdir($destfile); fopen($destfile, $mode) diff --git a/htdocs/modulebuilder/template/modulebuilder.txt b/htdocs/modulebuilder/template/modulebuilder.txt new file mode 100644 index 00000000000..4c726c35394 --- /dev/null +++ b/htdocs/modulebuilder/template/modulebuilder.txt @@ -0,0 +1,2 @@ +File to flag module build using official module template. +When this file is present into a module directory, you can edit it with the module builder tool. \ No newline at end of file