Merge pull request #22141 from dolibit-ut/patch-538
Update multicurrency_rate.php
This commit is contained in:
commit
bdd2c4efdb
@ -32,11 +32,12 @@
|
|||||||
* \brief Page to list multicurrency rate
|
* \brief Page to list multicurrency rate
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Dolibarr Environment
|
// Load Dolibarr environment
|
||||||
require '../main.inc.php';
|
require '../main.inc.php';
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formother.class.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formother.class.php';
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/multicurrency.lib.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/lib/multicurrency.lib.php';
|
||||||
|
|
||||||
|
|
||||||
// Load translation files required by the page
|
// Load translation files required by the page
|
||||||
$langs->loadLangs(array('multicurrency'));
|
$langs->loadLangs(array('multicurrency'));
|
||||||
|
|
||||||
@ -71,12 +72,13 @@ if (!$sortfield) $sortfield = "cr.date_sync";
|
|||||||
if (!$sortorder) $sortorder = "DESC";
|
if (!$sortorder) $sortorder = "DESC";
|
||||||
|
|
||||||
|
|
||||||
// Initialize technical object to manage hooks. Note that conf->hooks_modules contains array of hooks
|
// Initialize technical objects
|
||||||
$object = new CurrencyRate($db);
|
$object = new CurrencyRate($db);
|
||||||
|
|
||||||
$extrafields = new ExtraFields($db);
|
|
||||||
$form = new Form($db);
|
$form = new Form($db);
|
||||||
|
$extrafields = new ExtraFields($db);
|
||||||
|
|
||||||
|
|
||||||
|
// Initialize technical object to manage hooks. Note that conf->hooks_modules contains array of hooks
|
||||||
$hookmanager->initHooks(array('EditorRatelist', 'globallist'));
|
$hookmanager->initHooks(array('EditorRatelist', 'globallist'));
|
||||||
|
|
||||||
if (empty($action)) {
|
if (empty($action)) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user