From 5a9cca62a6a23fa11616478736ead5e3c1018cd3 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 4 May 2014 17:38:26 +0200 Subject: [PATCH] Clean code --- htdocs/core/class/conf.class.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/htdocs/core/class/conf.class.php b/htdocs/core/class/conf.class.php index ddd165d015ffd..307e43bb37885 100644 --- a/htdocs/core/class/conf.class.php +++ b/htdocs/core/class/conf.class.php @@ -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(); @@ -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(); @@ -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 }