* Fix bug #35926.
This commit is contained in:
@@ -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