Fix missing substitution

Missing substitution for object
This commit is contained in:
Inovea Conseil 2018-05-29 23:04:35 +02:00 committed by GitHub
parent ee83b9a7b2
commit fc7b88e5e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,6 @@
<?php
/* Copyright (C) 2004-2017 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2018 Nicolas ZABOURI <info@inovea-conseil.com>
*
* 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);