From 81a3220821a7bd666e79d297325aee8af5bbac1d Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Sat, 21 Dec 2013 00:47:59 +0000 Subject: [PATCH] Change client.inc.php by customer.inc.php --- include/class_customer.php | 2 +- include/{client.inc.php => customer.inc.php} | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) rename include/{client.inc.php => customer.inc.php} (99%) diff --git a/include/class_customer.php b/include/class_customer.php index bf036d02f..8c1ae570f 100644 --- a/include/class_customer.php +++ b/include/class_customer.php @@ -46,7 +46,7 @@ class Customer extends Fiche /*! \brief Constructor /* only a db connection is needed */ - function Customer($p_cn,$p_id=0) + function __construct($p_cn,$p_id=0) { $this->fiche_def_ref=FICHE_TYPE_CLIENT; parent::__construct($p_cn,$p_id) ; diff --git a/include/client.inc.php b/include/customer.inc.php similarity index 99% rename from include/client.inc.php rename to include/customer.inc.php index 9428ce70d..7178989a0 100644 --- a/include/client.inc.php +++ b/include/customer.inc.php @@ -109,6 +109,7 @@ if ($low_action == "list") echo '
'; /* Add button */ $f_add_button = new IButton('add_card'); + $f_add_button->class="smallbutton"; $f_add_button->label = _('Créer une nouvelle fiche'); $f_add_button->set_attribute('ipopup', 'ipop_newcard'); $f_add_button->set_attribute('win_refresh', 'yes');