mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Merge pull request #9547 from grandoc/new_branch_17_09_2018
Standardize and update code
This commit is contained in:
commit
fa61ebeb9d
|
|
@ -430,8 +430,9 @@ class ChargeSociales extends CommonObject
|
|||
{
|
||||
// phpcs:enable
|
||||
global $langs;
|
||||
$langs->load('customers');
|
||||
$langs->load('bills');
|
||||
|
||||
// Load translation files required by the page
|
||||
$langs->loadLangs(array("customers","bills"));
|
||||
|
||||
if ($mode == 0 || $mode == 1)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1149,8 +1149,8 @@ class FormOther
|
|||
|
||||
if ($nbboxactivated)
|
||||
{
|
||||
$langs->load("boxes");
|
||||
$langs->load("projects");
|
||||
// Load translation files required by the page
|
||||
$langs->loadLangs(array("boxes","projects"));
|
||||
|
||||
$emptybox=new ModeleBoxes($db);
|
||||
|
||||
|
|
|
|||
|
|
@ -101,9 +101,8 @@ class FormSms
|
|||
|
||||
if (! is_object($form)) $form=new Form($this->db);
|
||||
|
||||
$langs->load("other");
|
||||
$langs->load("mails");
|
||||
$langs->load("sms");
|
||||
// Load translation files required by the page
|
||||
$langs->loadLangs(array('other', 'mails', 'sms'));
|
||||
|
||||
$soc=new Societe($this->db);
|
||||
if (!empty($this->withtosocid) && $this->withtosocid > 0)
|
||||
|
|
|
|||
|
|
@ -98,8 +98,8 @@ class doc_generic_invoice_odt extends ModelePDFFactures
|
|||
{
|
||||
global $conf,$langs;
|
||||
|
||||
$langs->load("companies");
|
||||
$langs->load("errors");
|
||||
// Load translation files required by the page
|
||||
$langs->loadLangs(array('companies', 'errors'));
|
||||
|
||||
$form = new Form($this->db);
|
||||
|
||||
|
|
|
|||
|
|
@ -95,10 +95,10 @@ class doc_generic_supplier_proposal_odt extends ModelePDFSupplierProposal
|
|||
*/
|
||||
function info($langs)
|
||||
{
|
||||
global $conf,$langs;
|
||||
global $conf, $langs;
|
||||
|
||||
$langs->load("companies");
|
||||
$langs->load("errors");
|
||||
// Load translation files required by the page
|
||||
$langs->loadLangs(array('companies', 'errors'));
|
||||
|
||||
$form = new Form($this->db);
|
||||
|
||||
|
|
|
|||
|
|
@ -93,10 +93,10 @@ class doc_generic_user_odt extends ModelePDFUser
|
|||
*/
|
||||
function info($langs)
|
||||
{
|
||||
global $conf,$langs;
|
||||
global $conf, $langs;
|
||||
|
||||
$langs->load("companies");
|
||||
$langs->load("errors");
|
||||
// Load translation files required by the page
|
||||
$langs->loadLangs(array('companies', 'errors'));
|
||||
|
||||
$form = new Form($this->db);
|
||||
|
||||
|
|
|
|||
|
|
@ -37,10 +37,10 @@ require_once DOL_DOCUMENT_ROOT.'/core/lib/doc.lib.php';
|
|||
*/
|
||||
class doc_generic_usergroup_odt extends ModelePDFUserGroup
|
||||
{
|
||||
var $emetteur; // Objet societe qui emet
|
||||
public $emetteur; // Objet societe qui emet
|
||||
|
||||
var $phpmin = array(5,2,0); // Minimum version of PHP required by module
|
||||
var $version = 'dolibarr';
|
||||
public $phpmin = array(5,4,0); // Minimum version of PHP required by module
|
||||
public $version = 'dolibarr';
|
||||
|
||||
|
||||
/**
|
||||
|
|
@ -50,10 +50,10 @@ class doc_generic_usergroup_odt extends ModelePDFUserGroup
|
|||
*/
|
||||
function __construct($db)
|
||||
{
|
||||
global $conf,$langs,$mysoc;
|
||||
global $conf, $langs, $mysoc;
|
||||
|
||||
$langs->load("main");
|
||||
$langs->load("companies");
|
||||
// Load translation files required by the page
|
||||
$langs->loadLangs(array('companies', 'main'));
|
||||
|
||||
$this->db = $db;
|
||||
$this->name = "ODT templates";
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user