From: Daniel Friesen Date: Sat, 26 Nov 2011 17:43:45 +0000 (+0000) Subject: Followup r104274; Add '$key' to the $data array as well. X-Git-Tag: 1.31.0-rc.0~26292 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=7ce9a83f20681bb869a243cbf9f8cc3a29e8e140;p=lhc%2Fweb%2Fwiklou.git Followup r104274; Add '$key' to the $data array as well. --- diff --git a/includes/PathRouter.php b/includes/PathRouter.php index 5dbcfb1a00..32d2152257 100644 --- a/includes/PathRouter.php +++ b/includes/PathRouter.php @@ -219,6 +219,9 @@ class PathRouter { $data['$'.$n] = $matchValue; } } + if ( isset( $pattern->key ) ) { + $data['$key'] = $pattern->key; + } foreach ( $pattern->params as $paramName => $paramData ) { $value = null;