mirror of
https://github.com/DzzXH/DzzOffice.git
synced 2026-01-15 12:06:49 +08:00
@@ -366,6 +366,9 @@ class io_dzz extends io_api
|
||||
public function setFileContent($rid, $fileContent, $force = false, $nocover = true)
|
||||
{
|
||||
global $_G;
|
||||
if (strpos($rid, 'preview_') === 0) {
|
||||
$rid = preg_replace('/^preview_/', '', $rid);
|
||||
}
|
||||
if (!$icoarr = C::t('resources')->fetch_by_rid($rid)) {
|
||||
return array('error' => lang('file_not_exist'));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user