You are here

function ueditor_get_savepath in UEditor - 百度编辑器 7.2

Same name and namespace in other branches
  1. 8 ueditor.module \ueditor_get_savepath()
  2. 7.3 ueditor.module \ueditor_get_savepath()

ueditor get the save path.

8 calls to ueditor_get_savepath()
action_list.inc in includes/action_list.inc
ueditor_delete_file in ./ueditor.module
Deletes a file in the file list.
ueditor_file_register in ./ueditor.module
Registers the file as an ueditor file.
ueditor_register_filepath in ./ueditor.module
Register a file by uri.
Uploader::getFilePath in includes/Uploader.class.inc
获取文件完整路径

... See full list

File

./ueditor.module, line 999
Integration ueditor for wysiwyg.

Code

function ueditor_get_savepath($path) {
  $basePath = base_path();
  $filedir = variable_get('file_public_path', conf_path() . '/files');
  if ($path) {
    $savePath = str_replace($basePath . $filedir . '/', "", $path);
    $savePath = str_replace($GLOBALS['base_root'], "", $savePath);
  }
  return $savePath;
}