Standardize and update code
This commit is contained in:
parent
05772f5327
commit
c51a0ef901
@ -68,8 +68,9 @@ class CommActionRapport
|
|||||||
function __construct($db, $month, $year)
|
function __construct($db, $month, $year)
|
||||||
{
|
{
|
||||||
global $conf,$langs;
|
global $conf,$langs;
|
||||||
$langs->load("commercial");
|
|
||||||
$langs->load("projects");
|
// Load translation files required by the page
|
||||||
|
$langs->loadLangs(array("commercial","projects"));
|
||||||
|
|
||||||
$this->db = $db;
|
$this->db = $db;
|
||||||
$this->description = "";
|
$this->description = "";
|
||||||
|
|||||||
@ -47,10 +47,8 @@ class pdf_ban extends ModeleBankAccountDoc
|
|||||||
{
|
{
|
||||||
global $conf,$langs,$mysoc;
|
global $conf,$langs,$mysoc;
|
||||||
|
|
||||||
$langs->load("main");
|
// Load translation files required by the page
|
||||||
$langs->load("bank");
|
$langs->loadLangs(array("main","bank","withdrawals","companies"));
|
||||||
$langs->load("withdrawals");
|
|
||||||
$langs->load("companies");
|
|
||||||
|
|
||||||
$this->db = $db;
|
$this->db = $db;
|
||||||
$this->name = "ban";
|
$this->name = "ban";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user