From 7ce9a83f20681bb869a243cbf9f8cc3a29e8e140 Mon Sep 17 00:00:00 2001 From: Daniel Friesen Date: Sat, 26 Nov 2011 17:43:45 +0000 Subject: [PATCH] Followup r104274; Add '$key' to the $data array as well. --- includes/PathRouter.php | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.20.1