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