Skip to content

Commit

Permalink
Merge pull request #9563 from grandoc/develop
Browse files Browse the repository at this point in the history
Standardize and update code
  • Loading branch information
eldy committed Sep 19, 2018
2 parents 9d0594c + 3126191 commit 818098a
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
7 changes: 3 additions & 4 deletions scripts/contracts/email_expire_services_to_customers.php
Expand Up @@ -154,10 +154,9 @@
// Define line content
$outputlangs=new Translate('',$conf);
$outputlangs->setDefaultLang(empty($obj->default_lang)?$langs->defaultlang:$obj->default_lang); // By default language of customer
$outputlangs->load("bills");
$outputlangs->load("main");
$outputlangs->load("contracts");
$outputlangs->load("products");

// Load translation files required by the page
$outputlangs->loadLangs(array("main", "contracts", "bills", "products"));

if (dol_strlen($newemail))
{
Expand Down
Expand Up @@ -127,10 +127,9 @@
// Define line content
$outputlangs=new Translate('',$conf);
$outputlangs->setDefaultLang(empty($obj->lang)?$langs->defaultlang:$obj->lang); // By default language of sale representative
$outputlangs->load("bills");
$outputlangs->load("main");
$outputlangs->load("contracts");
$outputlangs->load("products");

// Load translation files required by the page
$outputlangs->loadLangs(array("main", "contracts", "bills", "products"));

if (dol_strlen($obj->email))
{
Expand Down
5 changes: 3 additions & 2 deletions scripts/invoices/email_unpaid_invoices_to_customers.php
Expand Up @@ -151,8 +151,9 @@
// Define line content
$outputlangs=new Translate('',$conf);
$outputlangs->setDefaultLang(empty($obj->default_lang)?$langs->defaultlang:$obj->default_lang); // By default language of customer
$outputlangs->load("bills");
$outputlangs->load("main");

// Load translation files required by the page
$outputlangs->loadLangs(array("main", "bills"));

if (dol_strlen($newemail))
{
Expand Down
5 changes: 3 additions & 2 deletions scripts/invoices/email_unpaid_invoices_to_representatives.php
Expand Up @@ -131,8 +131,9 @@
// Define line content
$outputlangs=new Translate('',$conf);
$outputlangs->setDefaultLang(empty($obj->lang)?$langs->defaultlang:$obj->lang); // By default language of sale representative
$outputlangs->load("bills");
$outputlangs->load("main");

// Load translation files required by the page
$outputlangs->loadLangs(array("main", "bills"));

if (dol_strlen($obj->email))
{
Expand Down

0 comments on commit 818098a

Please sign in to comment.