mirror of https://gitee.com/karson/fastadmin.git
修复非伪静态模式下cdnurl匹配错误的BUG
parent
ef52c2effd
commit
103e3902e4
|
|
@ -9,8 +9,7 @@ class Common
|
|||
|
||||
public function run(&$params)
|
||||
{
|
||||
$cdnurl = str_replace($_SERVER['SCRIPT_NAME'], '', $params->root());
|
||||
|
||||
$cdnurl = preg_replace("/\/(\w+)\.php$/i", '', $params->root());
|
||||
// 如果未设置__CDN__则自动匹配得出
|
||||
if (!Config::get('view_replace_str.__CDN__'))
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue