// Code Review Invoices V&V

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12993 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
vChabot
2012-02-03 15:55:53 +00:00
parent 790abcfc31
commit ce35fc7311
9 changed files with 189 additions and 202 deletions
+8 -9
View File
@@ -81,13 +81,13 @@ class PDFCore
}
if ($render)
return $this->pdf_renderer->render($this->filename, $display);
return $this->pdf_renderer->render($this->filename, $display);
}
public function getTemplateObject($object)
{
$class = false;
$classname = 'HTMLTemplate'.$this->template;
public function getTemplateObject($object)
{
$class = false;
$classname = 'HTMLTemplate'.$this->template;
if (class_exists($classname))
{
@@ -96,7 +96,6 @@ class PDFCore
throw new PrestaShopException('Invalid class. It should be an instance of HTMLTemplate');
}
return $class;
}
}
return $class;
}
}