Update multicurrency_rate.php
This commit is contained in:
parent
a079fb3fec
commit
5aa70ae2a6
@ -32,13 +32,18 @@
|
|||||||
* \brief Page to list multicurrency rate
|
* \brief Page to list multicurrency rate
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
// 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'));
|
||||||
|
|
||||||
|
|
||||||
|
// Get Parameters
|
||||||
$action = GETPOST('action', 'alpha');
|
$action = GETPOST('action', 'alpha');
|
||||||
$massaction = GETPOST('massaction', 'alpha');
|
$massaction = GETPOST('massaction', 'alpha');
|
||||||
$show_files = GETPOST('show_files', 'int');
|
$show_files = GETPOST('show_files', 'int');
|
||||||
@ -69,12 +74,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