diff --git a/htdocs/modulebuilder/index.php b/htdocs/modulebuilder/index.php index c46d76ce4ba..e844793b601 100644 --- a/htdocs/modulebuilder/index.php +++ b/htdocs/modulebuilder/index.php @@ -1,5 +1,6 @@ + * Copyright (C) 2018 Nicolas ZABOURI * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -398,7 +399,8 @@ if ($dirins && $action == 'initobject' && $module && $objectname) 'Mon module'=>$module, 'htdocs/modulebuilder/template/'=>strtolower($modulename), 'myobject'=>strtolower($objectname), - 'MyObject'=>$objectname + 'MyObject'=>$objectname, + 'MYOBJECT'=>strtoupper($objectname) ); $result=dolReplaceInFile($phpfileval['fullname'], $arrayreplacement);