// Fix PrestaShopException typo
This commit is contained in:
+1
-1
@@ -93,7 +93,7 @@ class PDFCore
|
||||
{
|
||||
$class = new $classname($object, $this->smarty);
|
||||
if (!($class instanceof HTMLTemplate))
|
||||
throw new PrestashopException('Invalid class. It should be an instance of HTMLTemplate');
|
||||
throw new PrestaShopException('Invalid class. It should be an instance of HTMLTemplate');
|
||||
}
|
||||
|
||||
return $class;
|
||||
|
||||
@@ -122,12 +122,12 @@ class PDFGeneratorCore extends TCPDF
|
||||
*
|
||||
* @param string $filename
|
||||
* @param boolean $inline
|
||||
* @throws PrestashopException
|
||||
* @throws PrestaShopException
|
||||
*/
|
||||
public function render($filename, $display = true)
|
||||
{
|
||||
if (empty($filename))
|
||||
throw new PrestashopException('Missing filename.');
|
||||
throw new PrestaShopException('Missing filename.');
|
||||
|
||||
$this->lastPage();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user