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 20, 2018
1 parent 46d7385 commit 1adc4ba
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
Expand Up @@ -44,7 +44,11 @@ class doc_generic_invoice_odt extends ModelePDFFactures
*/
public $emetteur; // Objet societe qui emet

public $phpmin = array(5,4,0); // Minimum version of PHP required by module
/**
* @var array() Minimum version of PHP required by module.
* e.g.: PHP ≥ 5.4 = array(5, 4)
*/
public $phpmin = array(5, 4);

/**
* Dolibarr version of the loaded document
Expand All @@ -60,7 +64,7 @@ class doc_generic_invoice_odt extends ModelePDFFactures
*/
function __construct($db)
{
global $conf,$langs,$mysoc;
global $conf, $langs, $mysoc;

// Load translation files required by the page
$langs->loadLangs(array("main","companies"));
Expand Down
2 changes: 1 addition & 1 deletion htdocs/core/modules/facture/doc/pdf_crabe.modules.php
Expand Up @@ -138,7 +138,7 @@ class pdf_crabe extends ModelePDFFactures
*/
function __construct($db)
{
global $conf,$langs,$mysoc;
global $conf, $langs, $mysoc;

// Translations
$langs->loadLangs(array("main", "bills"));
Expand Down
Expand Up @@ -42,7 +42,11 @@ class doc_generic_product_odt extends ModelePDFProduct
*/
public $emetteur;

public $phpmin = array(5,4,0); // Minimum version of PHP required by module
/**
* @var array() Minimum version of PHP required by module.
* e.g.: PHP ≥ 5.4 = array(5, 4)
*/
public $phpmin = array(5, 4);

/**
* Dolibarr version of the loaded document
Expand Down

0 comments on commit 1adc4ba

Please sign in to comment.