mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-02 05:02:48 +08:00
改进__EXT__常量定义
This commit is contained in:
@@ -164,8 +164,8 @@ class App {
|
||||
if('/favicon.ico'==$_SERVER['PATH_INFO']){
|
||||
exit;
|
||||
}
|
||||
$part = pathinfo($_SERVER['PATH_INFO']);
|
||||
define('__EXT__', isset($part['extension']) ? strtolower($part['extension']) : '');
|
||||
// URL后缀
|
||||
define('__EXT__', strtolower(pathinfo($_SERVER['PATH_INFO'],PATHINFO_EXTENSION)));
|
||||
$_SERVER['PATH_INFO'] = trim(preg_replace('/\.(' . trim($config['url_html_suffix'], '.') . ')$/i', '', $_SERVER['PATH_INFO']), '/');
|
||||
if($_SERVER['PATH_INFO']) {
|
||||
$paths = explode($config['pathinfo_depr'], $_SERVER['PATH_INFO']);
|
||||
|
||||
Reference in New Issue
Block a user