From e4cfc2c6cb8d923e8f1d71b597c7b392829736a8 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 31 Oct 2018 17:30:08 +0100 Subject: [PATCH] Fix public --- htdocs/modulebuilder/template/class/myobject.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/modulebuilder/template/class/myobject.class.php b/htdocs/modulebuilder/template/class/myobject.class.php index f5f3f582fbc..706b90f6eac 100644 --- a/htdocs/modulebuilder/template/class/myobject.class.php +++ b/htdocs/modulebuilder/template/class/myobject.class.php @@ -410,7 +410,7 @@ class MyObject extends CommonObject * @param int $mode 0=long label, 1=short label, 2=Picto + short label, 3=Picto, 4=Picto + long label, 5=Short label + Picto, 6=Long label + Picto * @return string Label of status */ - function getLibStatut($mode=0) + public function getLibStatut($mode=0) { return $this->LibStatut($this->status, $mode); } @@ -423,7 +423,7 @@ class MyObject extends CommonObject * @param int $mode 0=long label, 1=short label, 2=Picto + short label, 3=Picto, 4=Picto + long label, 5=Short label + Picto, 6=Long label + Picto * @return string Label of status */ - function LibStatut($status, $mode=0) + public function LibStatut($status, $mode=0) { // phpcs:enable if (empty($this->labelstatus)) @@ -475,7 +475,7 @@ class MyObject extends CommonObject * @param int $id Id of order * @return void */ - function info($id) + public function info($id) { $sql = 'SELECT rowid, date_creation as datec, tms as datem,'; $sql.= ' fk_user_creat, fk_user_modif';