* Fix bug #35926.
This commit is contained in:
@@ -411,10 +411,6 @@ class doc extends control
|
||||
$docID = $docResult['id'];
|
||||
$files = zget($docResult, 'files', '');
|
||||
$lib = $this->doc->getLibByID($libID);
|
||||
if($docResult['status'] == 'exists')
|
||||
{
|
||||
return $this->send(array('result' => 'fail', 'message' => sprintf($this->lang->duplicate, $this->lang->doc->common), 'locate' => $this->createLink('doc', 'view', "docID=$docID")));
|
||||
}
|
||||
|
||||
$fileAction = '';
|
||||
if(!empty($files)) $fileAction = $this->lang->addFiles . join(',', $files) . "\n";
|
||||
|
||||
@@ -888,13 +888,6 @@ class docModel extends model
|
||||
if(empty($doc->lib) and strpos($doc->module, '_') !== false) list($doc->lib, $doc->module) = explode('_', $doc->module);
|
||||
if(empty($doc->lib)) return dao::$errors['lib'] = sprintf($this->lang->error->notempty, $this->lang->doc->lib);
|
||||
|
||||
if($doc->title)
|
||||
{
|
||||
$condition = "lib = '$doc->lib' AND module = $doc->module";
|
||||
$result = $this->loadModel('common')->removeDuplicate('doc', $doc, $condition);
|
||||
if($result['stop']) return array('status' => 'exists', 'id' => $result['duplicate']);
|
||||
}
|
||||
|
||||
/* Fix bug #2929. strip_tags($this->post->contentMarkdown, $this->config->allowedTags)*/
|
||||
$lib = $this->getLibByID($doc->lib);
|
||||
$doc = $this->loadModel('file')->processImgURL($doc, $this->config->doc->editor->create['id'], $this->post->uid);
|
||||
|
||||
Reference in New Issue
Block a user