Commit 1b2ab309 authored by Kelly Banman's avatar Kelly Banman

Add support for non-string parameters in controller routes

Signed-off-by: 's avatarKelly Banman <kelly.banman@gmail.com>
parent d417eb56
...@@ -179,6 +179,8 @@ abstract class Controller { ...@@ -179,6 +179,8 @@ abstract class Controller {
// controllers with much less code than would be usual. // controllers with much less code than would be usual.
foreach ($parameters as $key => $value) foreach ($parameters as $key => $value)
{ {
if ( ! is_string($value)) continue;
$search = '(:'.($key + 1).')'; $search = '(:'.($key + 1).')';
$destination = str_replace($search, $value, $destination, $count); $destination = str_replace($search, $value, $destination, $count);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment