From fea72a459b3455809dcbbf6636900b230e07f530 Mon Sep 17 00:00:00 2001 From: Bevin Date: Fri, 6 May 2016 18:01:17 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E6=8A=93=E5=8F=96=E8=BF=9C?= =?UTF-8?q?=E7=A8=8B=E5=9B=BE=E7=89=87=E6=B2=A1=E6=9C=89=E5=8A=A0=E4=B8=8A?= =?UTF-8?q?pathRoot=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- UEditorAction.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/UEditorAction.php b/UEditorAction.php index 1b058e0..efbf1e1 100644 --- a/UEditorAction.php +++ b/UEditorAction.php @@ -219,6 +219,7 @@ protected function actionCrawler() { /* 上传配置 */ $config = array( + "pathRoot" => ArrayHelper::getValue($this->config, "catcherRoot", $_SERVER['DOCUMENT_ROOT']), "pathFormat" => $this->config['catcherPathFormat'], "maxSize" => $this->config['catcherMaxSize'], "allowFiles" => $this->config['catcherAllowFiles'], @@ -282,4 +283,4 @@ protected function getfiles($path, $allowFiles, &$files = array()) } return $files; } -} \ No newline at end of file +}