From 75d4b064e6e3f28442a311459d571aa862fa9cd1 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Wed, 6 Jul 2016 12:33:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9BUrl=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Url.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/think/Url.php b/library/think/Url.php index 736804d8..8061fcd0 100644 --- a/library/think/Url.php +++ b/library/think/Url.php @@ -143,7 +143,7 @@ class Url $url = $module . $controller . '/' . $request->action(); } else { $path = explode('/', $url); - $action = array_pop($path); + $action = Config::get('url_convert') ? Loader::parseName(array_pop($path)) : array_pop($path); $controller = empty($path) ? $controller : (Config::get('url_convert') ? Loader::parseName(array_pop($path)) : array_pop($path)); $module = empty($path) ? $module : array_pop($path) . '/'; $url = $module . $controller . '/' . $action;