mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-01-04 19:08:13 +00:00
移动安装目录,支持根目录index.php访问,也可以像tp5一样只对外开放public一个目录
This commit is contained in:
parent
6818bbc537
commit
4f7f8a438c
@ -79,7 +79,7 @@ class UploadService
|
||||
*/
|
||||
protected static function uploadDir($path, $root=null)
|
||||
{
|
||||
if($root === null) $root = 'public' . DS . 'uploads';
|
||||
if($root === null) $root = PUBILC_PATH . DS . 'uploads';
|
||||
return $root . DS . $path;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user