]> git.andy128k.dev Git - ipf.git/commitdiff
fix routes
authorAndrey Kutejko <andy128k@gmail.com>
Thu, 21 Aug 2014 16:05:03 +0000 (19:05 +0300)
committerAndrey Kutejko <andy128k@gmail.com>
Thu, 21 Aug 2014 16:05:03 +0000 (19:05 +0300)
ipf/router.php

index af8522fd627a3e29574c902e89ef9731ed6f8889..9c80df7349a876ac3ea737a51996d3911eefbfaf 100644 (file)
@@ -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.');
     }