From 15ff5953789ffed4ad2ca7ad73434dfeb2351a2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=AF=E7=AB=8B?= Date: Fri, 21 Apr 2017 11:29:45 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=9B=B4=E6=96=B0]=E4=BF=AE=E5=A4=8D=E5=9F=9F?= =?UTF-8?q?=E5=90=8D=E4=B8=8B=5F=5FPUBLIC=5F=5F=E7=9A=84=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extend/hook/FilterView.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extend/hook/FilterView.php b/extend/hook/FilterView.php index 53fd70d18..579517855 100644 --- a/extend/hook/FilterView.php +++ b/extend/hook/FilterView.php @@ -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);