forked from Wavyzz/dolibarr
Merge pull request #22141 from dolibit-ut/patch-538
Update multicurrency_rate.php
This commit is contained in:
@@ -32,11 +32,12 @@
|
||||
* \brief Page to list multicurrency rate
|
||||
*/
|
||||
|
||||
// Dolibarr Environment
|
||||
// Load Dolibarr environment
|
||||
require '../main.inc.php';
|
||||
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formother.class.php';
|
||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/multicurrency.lib.php';
|
||||
|
||||
|
||||
// Load translation files required by the page
|
||||
$langs->loadLangs(array('multicurrency'));
|
||||
|
||||
@@ -71,12 +72,13 @@ if (!$sortfield) $sortfield = "cr.date_sync";
|
||||
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);
|
||||
|
||||
$extrafields = new ExtraFields($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'));
|
||||
|
||||
if (empty($action)) {
|
||||
|
||||
Reference in New Issue
Block a user