Fixed typo.
This commit is contained in:
@@ -152,9 +152,9 @@ class UrlGenerator extends AbstractSmartyPlugin
|
|||||||
protected function getNavigateToValues()
|
protected function getNavigateToValues()
|
||||||
{
|
{
|
||||||
return array(
|
return array(
|
||||||
"current" => "getCurrentUrl",
|
"current" => "getCurrentUrl",
|
||||||
"previous " => "getPreviousUrl",
|
"previous" => "getPreviousUrl",
|
||||||
"index" => "getIndexUrl",
|
"index" => "getIndexUrl",
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -167,7 +167,7 @@ class UrlGenerator extends AbstractSmartyPlugin
|
|||||||
$navigateToValues = $this->getNavigateToValues();
|
$navigateToValues = $this->getNavigateToValues();
|
||||||
|
|
||||||
if (!array_key_exists($to, $navigateToValues)) {
|
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];
|
return $navigateToValues[$to];
|
||||||
|
|||||||
Reference in New Issue
Block a user