Browse code

bug fix

RafaƂ Szklarczyk authored on 23/07/2019 06:38:11
Showing 1 changed files
... ...
@@ -274,7 +274,7 @@ class Application{
274 274
                         $this->router->routeInfo::eventHandlerArgumentsFormatCheck($eh['arguments'], $args);
275 275
                         $field_pattern ='#^{(?<field>[a-zA-Z_\x80-\xff][a-zA-Z0-9_\x80-\xff]*)}$#';
276 276
                         foreach($args as $index => $param){
277
-                            if(\preg_match($field_pattern, $controllerAction['module'], $match) ){
277
+                            if(\preg_match($field_pattern, $param, $match) ){
278 278
                                 $args[$index] = $this->router->parsedParameters[$match['field']]."\\";
279 279
                             }
280 280
                         }