From c25fdd7e420c15e4d7339196647b0e9b843b4991 Mon Sep 17 00:00:00 2001 From: Manuel Raynaud Date: Fri, 17 Jan 2014 10:37:52 +0100 Subject: [PATCH] fix exception not thrown correctly --- core/lib/Thelia/Core/Template/Smarty/Plugins/UrlGenerator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/lib/Thelia/Core/Template/Smarty/Plugins/UrlGenerator.php b/core/lib/Thelia/Core/Template/Smarty/Plugins/UrlGenerator.php index d8227092f..ac7a7f0f2 100755 --- a/core/lib/Thelia/Core/Template/Smarty/Plugins/UrlGenerator.php +++ b/core/lib/Thelia/Core/Template/Smarty/Plugins/UrlGenerator.php @@ -58,7 +58,7 @@ class UrlGenerator extends AbstractSmartyPlugin } elseif ($path !== null) { $mode = URL::WITH_INDEX_PAGE; } else { - throw \InvalidArgumentException(Translator::getInstance()->trans("Please specify either 'path' or 'file' parameter in {url} function.")); + throw new \InvalidArgumentException(Translator::getInstance()->trans("Please specify either 'path' or 'file' parameter in {url} function.")); } $target = $this->getParam($params, 'target', null);