From 096852bb06a9108830653db70cfd0c2ecf8d6b24 Mon Sep 17 00:00:00 2001 From: Andrey Kutejko Date: Thu, 21 Aug 2014 19:05:03 +0300 Subject: [PATCH] fix routes --- ipf/router.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipf/router.php b/ipf/router.php index af8522f..9c80df7 100644 --- a/ipf/router.php +++ b/ipf/router.php @@ -116,7 +116,7 @@ class IPF_Router public function reverse($view, $params=array()) { foreach ($this->routes as $route) - if ($route->expr == $view) + if ($route->func == $view) return IPF::get('app_base') . $route->matcher()->reverse($params); throw new IPF_Exception('Error, the view: '.$view.' has not been found.'); } -- 2.49.0