From 5cb01ff30f20d38bad4dfc754a1383bc9646ea59 Mon Sep 17 00:00:00 2001 From: Franck Allimant Date: Tue, 10 Jun 2014 15:57:33 +0200 Subject: [PATCH] Fixed typo. --- .../Thelia/Core/Template/Smarty/Plugins/UrlGenerator.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/lib/Thelia/Core/Template/Smarty/Plugins/UrlGenerator.php b/core/lib/Thelia/Core/Template/Smarty/Plugins/UrlGenerator.php index 8a6bc5e5b..332c3fbaf 100644 --- a/core/lib/Thelia/Core/Template/Smarty/Plugins/UrlGenerator.php +++ b/core/lib/Thelia/Core/Template/Smarty/Plugins/UrlGenerator.php @@ -152,9 +152,9 @@ class UrlGenerator extends AbstractSmartyPlugin protected function getNavigateToValues() { return array( - "current" => "getCurrentUrl", - "previous " => "getPreviousUrl", - "index" => "getIndexUrl", + "current" => "getCurrentUrl", + "previous" => "getPreviousUrl", + "index" => "getIndexUrl", ); } @@ -167,7 +167,7 @@ class UrlGenerator extends AbstractSmartyPlugin $navigateToValues = $this->getNavigateToValues(); if (!array_key_exists($to, $navigateToValues)) { - throw new \InvalidArgumentException("Incorrect value for parameter `to` in `navigate` substitution."); + throw new \InvalidArgumentException(sprintf("Incorrect value `%s` for parameter `to` in `navigate` substitution.", $to)); } return $navigateToValues[$to];