From: Andrey Kutejko Date: Thu, 21 Aug 2014 16:05:03 +0000 (+0300) Subject: fix routes X-Git-Tag: 0.6~174 X-Git-Url: https://git.andy128k.dev/?a=commitdiff_plain;h=096852bb06a9108830653db70cfd0c2ecf8d6b24;p=ipf.git fix routes --- 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.'); }