From d1204e5e9b0a849834843367efceb61e2839533b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Sat, 5 Dec 2020 15:35:52 +0100 Subject: [PATCH 1/2] typo ortho --- htdocs/admin/mails_templates.php | 2 +- htdocs/compta/facture/card.php | 2 +- htdocs/core/lib/website2.lib.php | 2 +- htdocs/modulebuilder/template/admin/myobject_extrafields.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/htdocs/admin/mails_templates.php b/htdocs/admin/mails_templates.php index de98c42b35a..6538d5c3011 100644 --- a/htdocs/admin/mails_templates.php +++ b/htdocs/admin/mails_templates.php @@ -1074,7 +1074,7 @@ function fieldList($fieldlist, $obj = '', $tabname = '', $context = '') print ''; if ($context == 'edit' && !empty($obj->{$fieldlist[$field]}) && !in_array($obj->{$fieldlist[$field]}, array_keys($elementList))) { - // Current tempalte type is an unknown type, so we must keep it as it is. + // Current template type is an unknown type, so we must keep it as it is. print ''; print $obj->{$fieldlist[$field]}; } else { diff --git a/htdocs/compta/facture/card.php b/htdocs/compta/facture/card.php index 110db6d8166..4451f13bd77 100644 --- a/htdocs/compta/facture/card.php +++ b/htdocs/compta/facture/card.php @@ -3551,7 +3551,7 @@ if ($action == 'create') print ''; } - // Lines from source (TODO Show them also when creating invoice from tempalte invoice) + // Lines from source (TODO Show them also when creating invoice from template invoice) if (!empty($origin) && !empty($originid) && is_object($objectsrc)) { // TODO for compatibility diff --git a/htdocs/core/lib/website2.lib.php b/htdocs/core/lib/website2.lib.php index 673b904b743..1ed80ece372 100644 --- a/htdocs/core/lib/website2.lib.php +++ b/htdocs/core/lib/website2.lib.php @@ -442,7 +442,7 @@ function dolSaveReadme($file, $content) /** * Show list of themes. Show all thumbs of themes/skins * - * @param Website $website Object website to load the tempalte into + * @param Website $website Object website to load the template into * @return void */ function showWebsiteTemplates(Website $website) diff --git a/htdocs/modulebuilder/template/admin/myobject_extrafields.php b/htdocs/modulebuilder/template/admin/myobject_extrafields.php index fdc2161f504..fdd50d0e89b 100644 --- a/htdocs/modulebuilder/template/admin/myobject_extrafields.php +++ b/htdocs/modulebuilder/template/admin/myobject_extrafields.php @@ -21,7 +21,7 @@ */ /** - * \file htdocs/modulebuilder/tempalte/admin/myobject_extrafields.php + * \file htdocs/modulebuilder/template/admin/myobject_extrafields.php * \ingroup mymodule * \brief Page to setup extra fields of myobject */ From 025523c6c0e4162f824896a73fdfac99ffd73ccc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Sat, 5 Dec 2020 15:40:23 +0100 Subject: [PATCH 2/2] Update myobject_extrafields.php --- htdocs/modulebuilder/template/admin/myobject_extrafields.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/modulebuilder/template/admin/myobject_extrafields.php b/htdocs/modulebuilder/template/admin/myobject_extrafields.php index fdd50d0e89b..c844f80e4cc 100644 --- a/htdocs/modulebuilder/template/admin/myobject_extrafields.php +++ b/htdocs/modulebuilder/template/admin/myobject_extrafields.php @@ -31,7 +31,7 @@ require_once DOL_DOCUMENT_ROOT.'/core/lib/bom.lib.php'; require_once DOL_DOCUMENT_ROOT.'/core/class/extrafields.class.php'; // Load translation files required by the page -$langs->loadLangs(array('mrp@mrp', 'admin')); +$langs->loadLangs(array('mymodule@mymodule', 'admin')); $extrafields = new ExtraFields($db); $form = new Form($db);