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');