From 76848ca61ce8659633b33956dd1e851d52c2bf3e Mon Sep 17 00:00:00 2001 From: thinkphp Date: Wed, 24 Feb 2016 11:19:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3Url=E7=94=9F=E6=88=90?= =?UTF-8?q?=E4=B8=80=E5=A4=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Url.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/think/Url.php b/library/think/Url.php index 8564cd36..67944115 100644 --- a/library/think/Url.php +++ b/library/think/Url.php @@ -132,8 +132,8 @@ class Url $path = explode('/', $url); $action = array_pop($path); $controller = empty($path) ? CONTROLLER_NAME : (Config::get('url_controller_convert') ? Loader::parseName(array_pop($path)) : array_pop($path)); - $module = empty($path) ? $module : array_pop($path); - $url = ($module ? $module . '/' : '') . $controller . '/' . $action; + $module = empty($path) ? $module : array_pop($path) . '/'; + $url = $module . $controller . '/' . $action; } } return $url;