From 0889fe975af8dc565d0bd27d3bf93884170d1a86 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Thu, 28 Jul 2016 16:22:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3Route=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Route.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/library/think/Route.php b/library/think/Route.php index f15ae493..0122d660 100644 --- a/library/think/Route.php +++ b/library/think/Route.php @@ -323,9 +323,9 @@ class Route if (!empty($name)) { // 分组 if ($routes instanceof \Closure) { - $curentGroup = self::getGroup('name'); - if ($curentGroup) { - $name = $curentGroup . '/' . ltrim($name, '/'); + $currentGroup = self::getGroup('name'); + if ($currentGroup) { + $name = $currentGroup . '/' . ltrim($name, '/'); } $currentOption = self::getGroup('option'); $currentPattern = self::getGroup('pattern'); @@ -366,7 +366,7 @@ class Route } else { if ($routes instanceof \Closure) { // 闭包注册 - $curentGroup = self::getGroup('name'); + $currentGroup = self::getGroup('name'); $currentOption = self::getGroup('option'); $currentPattern = self::getGroup('pattern'); self::setGroup($name, $option, $pattern);