[更新]修复域名下__PUBLIC__的文件判断

This commit is contained in:
邹景立 2017-04-21 11:29:45 +08:00
parent c7d014c1d8
commit 15ff595378

View File

@ -31,7 +31,7 @@ class FilterView {
$replace = [
'__APP__' => $app,
'__SELF__' => Request::instance()->url(true),
'__PUBLIC__' => strpos($app, '.') ? ltrim(dirname($app), DS) : $app,
'__PUBLIC__' => strpos($app, EXT) ? ltrim(dirname($app), DS) : $app,
];
$params = str_replace(array_keys($replace), array_values($replace), $params);
$this->baidu($params);