Skip to content

Commit

Permalink
Clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed May 4, 2014
1 parent b990d1e commit 5a9cca6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions htdocs/core/class/conf.class.php
Expand Up @@ -77,7 +77,7 @@ class Conf
*/
function __construct()
{
// Avoid warnings when filling this->xxx
// Properly declare multi-modules objects.
$this->file = new stdClass();
$this->db = new stdClass();
$this->global = new stdClass();
Expand All @@ -88,7 +88,11 @@ function __construct()
$this->browser = new stdClass();
$this->multicompany = new stdClass();

//! Charset for HTML output and for storing data in memory
$this->file->character_set_client='UTF-8'; // UTF-8, ISO-8859-1

// First level object
// TODO Remove this part.
$this->expedition_bon = new stdClass();
$this->livraison_bon = new stdClass();
$this->fournisseur = new stdClass();
Expand All @@ -104,9 +108,6 @@ function __construct()
$this->bank = new stdClass();
$this->notification = new stdClass();
$this->mailing = new stdClass();

//! Charset for HTML output and for storing data in memory
$this->file->character_set_client='UTF-8'; // UTF-8, ISO-8859-1
}


Expand Down

0 comments on commit 5a9cca6

Please sign in to comment.