mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 23:22:48 +08:00
修正Url生成一处问题
This commit is contained in:
@@ -132,8 +132,8 @@ class Url
|
|||||||
$path = explode('/', $url);
|
$path = explode('/', $url);
|
||||||
$action = array_pop($path);
|
$action = array_pop($path);
|
||||||
$controller = empty($path) ? CONTROLLER_NAME : (Config::get('url_controller_convert') ? Loader::parseName(array_pop($path)) : 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);
|
$module = empty($path) ? $module : array_pop($path) . '/';
|
||||||
$url = ($module ? $module . '/' : '') . $controller . '/' . $action;
|
$url = $module . $controller . '/' . $action;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return $url;
|
return $url;
|
||||||
|
|||||||
Reference in New Issue
Block a user