From c36f94a9a3429bdc635cbb938fbf876b11889ef2 Mon Sep 17 00:00:00 2001 From: Ion Agorria <ion@agorria.com> Date: Sun, 30 Nov 2014 15:14:25 +0100 Subject: [PATCH] Fixed dinamic typo to dynamic --- htdocs/core/modules/modDinamicPrices.class.php | 16 ++++++++-------- htdocs/langs/en_US/admin.lang | 2 +- htdocs/product/fournisseurs.php | 4 ++-- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/htdocs/core/modules/modDinamicPrices.class.php b/htdocs/core/modules/modDinamicPrices.class.php index 392fc1bae52..c1450bc3b27 100755 --- a/htdocs/core/modules/modDinamicPrices.class.php +++ b/htdocs/core/modules/modDinamicPrices.class.php @@ -16,19 +16,19 @@ */ /** - * \defgroup produit Module dinamic prices - * \brief Module to manage dinamic prices in products - * \file htdocs/core/modules/modDinamicPrices.class.php + * \defgroup produit Module dynamic prices + * \brief Module to manage dynamic prices in products + * \file htdocs/core/modules/modDynamicPrices.class.php * \ingroup produit - * \brief File to describe module to manage dinamic prices in products + * \brief File to describe module to manage dynamic prices in products */ include_once DOL_DOCUMENT_ROOT .'/core/modules/DolibarrModules.class.php'; /** - * Class descriptor of DinamicPrices module + * Class descriptor of DynamicPrices module */ -class modDinamicPrices extends DolibarrModules +class modDynamicPrices extends DolibarrModules { /** @@ -58,7 +58,7 @@ class modDinamicPrices extends DolibarrModules // Config pages //------------- - //$this->config_page_url = array("dinamicprices.php@dinamicprices"); + //$this->config_page_url = array("dynamicprices.php@dynamicprices"); // Dependancies //------------- @@ -81,7 +81,7 @@ class modDinamicPrices extends DolibarrModules // Permissions //------------ $this->rights = array(); - $this->rights_class = 'dinamicprices'; + $this->rights_class = 'dynamicprices'; $r=0; } diff --git a/htdocs/langs/en_US/admin.lang b/htdocs/langs/en_US/admin.lang index 3df2a8fc72d..f10c6ebbb3a 100755 --- a/htdocs/langs/en_US/admin.lang +++ b/htdocs/langs/en_US/admin.lang @@ -495,7 +495,7 @@ Module1780Name=Categories Module1780Desc=Category management (products, suppliers and customers) Module2000Name=WYSIWYG editor Module2000Desc=Allow to edit some text area using an advanced editor -Module2200Name=Dinamic Prices +Module2200Name=Dynamic Prices Module2200Desc=Enable the usage of math expressions for prices Module2300Name=Cron Module2300Desc=Scheduled task management diff --git a/htdocs/product/fournisseurs.php b/htdocs/product/fournisseurs.php index b0d07587996..864ac162ea9 100755 --- a/htdocs/product/fournisseurs.php +++ b/htdocs/product/fournisseurs.php @@ -196,7 +196,7 @@ if ($action == 'updateprice' && GETPOST('cancel') <> $langs->trans("Cancel")) setEventMessage($priceparser->translated_error(), 'errors'); } } - if (! $error && ! empty($conf->dinamicprices->enabled)) { + if (! $error && ! empty($conf->dynamicprices->enabled)) { $ret=$product->set_price_expression($price_expression); if ($ret < 0) { @@ -399,7 +399,7 @@ if ($id || $ref) print '<input type="text" class="flat" size="5" name="tva_tx" value="'.(GETPOST("tva_tx")?vatrate(GETPOST("tva_tx")):($default_vat!=''?vatrate($default_vat):'')).'">'; print '</td></tr>'; - if (! empty($conf->dinamicprices->enabled)) { //Only show price mode and expression selector if module is enabled + if (! empty($conf->dynamicprices->enabled)) { //Only show price mode and expression selector if module is enabled // Price mode selector print '<tr><td class="fieldrequired">'.$langs->trans("PriceMode").'</td><td>'; $price_expression = new PriceExpression($db); -- GitLab