Skip to content

Commit

Permalink
[IndexDigirisk] add: Display current version
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-eoxia committed Sep 30, 2021
1 parent 00bee0c commit bdb9c06
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions digiriskdolibarrindex.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,15 @@
require_once DOL_DOCUMENT_ROOT.'/projet/class/project.class.php';
require_once DOL_DOCUMENT_ROOT.'/societe/class/societe.class.php';
require_once DOL_DOCUMENT_ROOT.'/core/modules/project/mod_project_simple.php';
require_once './core/modules/modDigiriskDolibarr.class.php';

global $user, $langs, $conf, $db;

global $user, $langs, $conf;
// Load translation files required by the page
$langs->loadLangs(array("digiriskdolibarr@digiriskdolibarr"));

// Initialize technical objects
$digirisk = new modDigiriskdolibarr($db);
$project = new Project($db);
$third_party = new Societe($db);
$projectRef = new $conf->global->PROJECT_ADDON();
Expand Down Expand Up @@ -98,9 +101,9 @@
$morejs = array("/digiriskdolibarr/js/tiny-slider.min.js", "/digiriskdolibarr/js/digiriskdolibarr.js.php");
$morecss = array("/digiriskdolibarr/css/tiny-slider.min.css", "/digiriskdolibarr/css/digiriskdolibarr.css");

llxHeader("", $langs->trans("DigiriskDolibarrArea"), $help_url, '', '', '', $morejs, $morecss);
llxHeader("", $langs->trans("DigiriskDolibarrArea") . ' ' . $digirisk->version, $help_url, '', '', '', $morejs, $morecss);

print load_fiche_titre($langs->trans("DigiriskDolibarrArea"), '', 'digiriskdolibarr32px.png@digiriskdolibarr');
print load_fiche_titre($langs->trans("DigiriskDolibarrArea") . ' ' . $digirisk->version, '', 'digiriskdolibarr32px.png@digiriskdolibarr');
?>

<div class="wpeo-notice notice-info">
Expand Down

0 comments on commit bdb9c06

Please sign in to comment.