Fix: mutualize code

This commit is contained in:
Regis Houssin
2010-04-28 19:23:36 +00:00
parent a8b55112a3
commit ebdbeec4a9
3 changed files with 44 additions and 149 deletions

View File

@@ -1031,7 +1031,6 @@ class CommonObject
$tplpath = $object;
if ($object == 'facture') $tplpath = $classpath = 'compta/'.$object;
if ($object == 'propal') $tplpath = $classpath = 'comm/'.$object;
if ($object == 'commande') $tplpath = $classpath = $object;
$classname = ucfirst($object);
if(!class_exists($classname)) require(DOL_DOCUMENT_ROOT."/".$classpath."/".$object.".class.php");