Skip to content

Commit

Permalink
Standardize and update code
Browse files Browse the repository at this point in the history
  • Loading branch information
grandoc committed Sep 13, 2018
1 parent ca85356 commit ffad80e
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 19 deletions.
Expand Up @@ -46,8 +46,8 @@ function info()
{
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);

Expand Down
Expand Up @@ -37,10 +37,10 @@
*/
class doc_generic_supplier_proposal_odt extends ModelePDFSupplierProposal
{
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';


/**
Expand All @@ -52,8 +52,8 @@ function __construct($db)
{
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";
Expand Down
4 changes: 2 additions & 2 deletions htdocs/core/modules/ticket/mod_ticket_universal.php
Expand Up @@ -43,8 +43,8 @@ public function info()
{
global $conf, $langs;

$langs->load("ticket");
$langs->load("admin");
// Load translation files required by the page
$langs->loadLangs(array("ticket","admin"));

$form = new Form($this->db);

Expand Down
10 changes: 5 additions & 5 deletions htdocs/core/modules/user/doc/doc_generic_user_odt.modules.php
Expand Up @@ -35,10 +35,10 @@
*/
class doc_generic_user_odt extends ModelePDFUser
{
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';


/**
Expand All @@ -50,8 +50,8 @@ function __construct($db)
{
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";
Expand Down
Expand Up @@ -37,10 +37,10 @@
*/
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';


/**
Expand All @@ -52,8 +52,8 @@ function __construct($db)
{
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";
Expand Down

0 comments on commit ffad80e

Please sign in to comment.