From 52240eec9aa7e688b999886ff356f837e6583b18 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 15 Aug 2015 02:44:05 +0200 Subject: [PATCH] Fix removed warnings --- htdocs/core/class/html.formactions.class.php | 2 +- htdocs/core/lib/functions.lib.php | 4 ++-- htdocs/fourn/commande/card.php | 7 ++++--- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/htdocs/core/class/html.formactions.class.php b/htdocs/core/class/html.formactions.class.php index 15bb1b8b43d..60fbdc0c467 100644 --- a/htdocs/core/class/html.formactions.class.php +++ b/htdocs/core/class/html.formactions.class.php @@ -179,7 +179,7 @@ class FormActions elseif ($typeelement == 'fichinter') $title=$langs->trans('ActionsOnFicheInter'); else $title=$langs->trans("Actions"); - print_titre($title); + print load_fiche_titre($title,'',''); $total = 0; $var=true; print ''; diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index 5f45496b950..e0a7ec1b9f2 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -2730,8 +2730,8 @@ function getTitleFieldOfList($name, $thead=0, $file="", $field="", $begin="", $m * * @param string $title Title to show * @return string Title to show - * @deprecated Use print_fiche_titre instead - * @see print_fiche_titre + * @deprecated Use load_fiche_titre instead + * @see print_fiche_titre, load_fiche_titre */ function print_titre($title) { diff --git a/htdocs/fourn/commande/card.php b/htdocs/fourn/commande/card.php index 9ca609c154c..9b0001e79d6 100644 --- a/htdocs/fourn/commande/card.php +++ b/htdocs/fourn/commande/card.php @@ -1612,9 +1612,10 @@ if ($action=='create') print "\n"; // Show origin lines - if (! empty($origin) && ! empty($originid) && is_object($objectsrc)) { + if (! empty($origin) && ! empty($originid) && is_object($objectsrc)) + { $title = $langs->trans('ProductsAndServices'); - print_titre($title); + print load_fiche_titre($title,'',''); print '
'; @@ -2395,7 +2396,7 @@ elseif (! empty($object->id)) 'entity'=>'' ); - print_titre($langs->trans('CreateRemoteOrder')); + print load_fiche_titre($langs->trans('CreateRemoteOrder'),''); //Is everything filled? if (empty($ws_url) || empty($ws_key)) {