From 8dd47fb41d347727e6f454bae950839429fa6a7a Mon Sep 17 00:00:00 2001 From: thinkphp Date: Thu, 7 Jan 2016 12:02:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Url.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/library/think/Url.php b/library/think/Url.php index 9172aa9f..f9f64603 100644 --- a/library/think/Url.php +++ b/library/think/Url.php @@ -47,13 +47,13 @@ class Url $path = explode($depr, $url); $var = []; $bind = Route::bind('module'); - if($bind){ - list($var['module'],$var['controller'],$var['action']) = explode('/',$bind); + if ($bind) { + list($var['module'], $var['controller'], $var['action']) = explode('/', $bind); } if (empty($var['action'])) { $var['action'] = !empty($path) ? array_pop($path) : ACTION_NAME; } - if (empty($var['controller']) { + if (empty($var['controller'])) { $var['controller'] = !empty($path) ? array_pop($path) : CONTROLLER_NAME; } if (APP_MULTI_MODULE && empty($var['module'])) {