主题虚拟机下地址错误

This commit is contained in:
devil_gong
2019-01-11 17:35:35 +08:00
parent 67beecb942
commit 65c637b28e
15 changed files with 105 additions and 100 deletions

View File

@ -130,7 +130,7 @@ class Ueditor extends Common
$path = input('path');
if(!empty($path))
{
$path = (__MY_ROOT__ == '/') ? substr(ROOT_PATH, 0, -1).$path : str_replace(__MY_ROOT__, ROOT_PATH, $path);
$path = (__MY_ROOT_PUBLIC__ == '/') ? substr(ROOT_PATH, 0, -1).$path : str_replace(__MY_ROOT_PUBLIC__, ROOT_PATH, $path);
if(file_exists($path))
{
if(is_writable($path))