From 2419ec011876ef7aa8fc32fd1073fe507d3c5721 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 27 Aug 2011 17:08:09 +0000 Subject: [PATCH] Qual: Comment deprecated code --- htdocs/societe/soc.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/htdocs/societe/soc.php b/htdocs/societe/soc.php index 1ac25432b02..6a7a991b597 100644 --- a/htdocs/societe/soc.php +++ b/htdocs/societe/soc.php @@ -88,10 +88,8 @@ $parameters=array('socid'=>$socid); $reshook=$hookmanager->executeHooks('doActions',$parameters,$object,$action); // Note that $action and $object may have been modified by some hooks $error=$hookmanager->error; $errors=$hookmanager->errors; -// ---------- start deprecated. Use hook to hook actions. -// If canvas actions are defined, because on url, or because contact was created with canvas feature on, we use the canvas feature. -// If canvas actions are not defined, we use standard feature. -if (method_exists($objcanvas->control,'doActions')) +// ---------- start deprecated. Must use hook to hook actions. +/*if (method_exists($objcanvas->control,'doActions')) { $objcanvas->doActions($socid); @@ -101,7 +99,7 @@ if (method_exists($objcanvas->control,'doActions')) if ($action=='add') { $objcanvas->action='create'; $action='create'; } if ($action=='update') { $objcanvas->action='edit'; $action='edit'; } } -} +}*/ // ---------- end deprecated.