Standardize and update code
This commit is contained in:
parent
04017367f9
commit
06cde1c35f
@ -45,8 +45,8 @@ class mod_project_universal extends ModeleNumRefProjects
|
||||
{
|
||||
global $conf,$langs;
|
||||
|
||||
$langs->load("projects");
|
||||
$langs->load("admin");
|
||||
// Load translation files required by the page
|
||||
$langs->loadLangs(array("projects","admin"));
|
||||
|
||||
$form = new Form($this->db);
|
||||
|
||||
|
||||
@ -45,8 +45,8 @@ class mod_task_universal extends ModeleNumRefTask
|
||||
{
|
||||
global $conf,$langs;
|
||||
|
||||
$langs->load("projects");
|
||||
$langs->load("admin");
|
||||
// Load translation files required by the page
|
||||
$langs->loadLangs(array("projects","admin"));
|
||||
|
||||
$form = new Form($this->db);
|
||||
|
||||
|
||||
@ -52,8 +52,8 @@ class doc_generic_proposal_odt extends ModelePDFPropales
|
||||
{
|
||||
global $conf,$langs,$mysoc;
|
||||
|
||||
$langs->load("main");
|
||||
$langs->load("companies");
|
||||
// Load translation files required by the page
|
||||
$langs->loadLangs(array("main","companies"));
|
||||
|
||||
$this->db = $db;
|
||||
$this->name = "ODT templates";
|
||||
@ -97,8 +97,8 @@ class doc_generic_proposal_odt extends ModelePDFPropales
|
||||
{
|
||||
global $conf,$langs;
|
||||
|
||||
$langs->load("companies");
|
||||
$langs->load("errors");
|
||||
// Load translation files required by the page
|
||||
$langs->loadLangs(array("errors","companies"));
|
||||
|
||||
$form = new Form($this->db);
|
||||
|
||||
|
||||
@ -40,9 +40,9 @@ class pdf_paiement
|
||||
function __construct($db)
|
||||
{
|
||||
global $langs,$conf;
|
||||
$langs->load("bills");
|
||||
$langs->load("compta");
|
||||
$langs->load("main");
|
||||
|
||||
// Load translation files required by the page
|
||||
$langs->loadLangs(array("bills","compta","main"));
|
||||
|
||||
$this->db = $db;
|
||||
$this->description = $langs->transnoentities("ListOfCustomerPayments");
|
||||
|
||||
@ -48,8 +48,8 @@ class doc_generic_odt extends ModeleThirdPartyDoc
|
||||
{
|
||||
global $conf,$langs,$mysoc;
|
||||
|
||||
$langs->load("main");
|
||||
$langs->load("companies");
|
||||
// Load translation files required by the page
|
||||
$langs->loadLangs(array("main","companies"));
|
||||
|
||||
$this->db = $db;
|
||||
$this->name = "ODT templates";
|
||||
|
||||
@ -51,8 +51,8 @@ class doc_generic_stock_odt extends ModelePDFStock
|
||||
{
|
||||
global $conf,$langs,$mysoc;
|
||||
|
||||
$langs->load("main");
|
||||
$langs->load("companies");
|
||||
// Load translation files required by the page
|
||||
$langs->loadLangs(array("main","companies"));
|
||||
|
||||
$this->db = $db;
|
||||
$this->name = "ODT templates";
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
/* Copyright (C) 2003-2007 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
* Copyright (C) 2004-2008 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
* Copyright (C) 2005-2009 Regis Houssin <regis.houssin@capnetworks.com>
|
||||
* Copyright (C) 2013 Philippe Grand <philippe.grand@atoo-net.com>
|
||||
* Copyright (C) 2013-2018 Philippe Grand <philippe.grand@atoo-net.com>
|
||||
* Copyright (C) 2013 Juanjo Menent <jmenent@2byte.es>
|
||||
* Copyright (C) 2016 Alexandre Spangaro <aspangaro@zendsi.com>
|
||||
*
|
||||
@ -50,8 +50,8 @@ class mod_facture_fournisseur_tulip extends ModeleNumRefSuppliersInvoices
|
||||
{
|
||||
global $conf,$langs;
|
||||
|
||||
$langs->load("bills");
|
||||
$langs->load("admin");
|
||||
// Load translation files required by the page
|
||||
$langs->loadLangs(array("bills","admin"));
|
||||
|
||||
$form = new Form($this->db);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user