* finish task #3147 and update HTMLPurifier.
This commit is contained in:
@@ -456,7 +456,8 @@ class docModel extends model
|
||||
->remove('comment,files,labels,uid')
|
||||
->get();
|
||||
if($doc->acl == 'private') $doc->users = $oldDoc->addedBy;
|
||||
if($oldDoc->contentType == 'markdown') $doc->content = str_replace('>', '>', $doc->content);
|
||||
$oldDocContent = $this->dao->select('files,type')->from(TABLE_DOCCONTENT)->where('doc')->eq($docID)->andWhere('version')->eq($oldDoc->version)->fetch();
|
||||
if($oldDocContent->type == 'markdown') $doc->content = str_replace('>', '>', $doc->content);
|
||||
|
||||
$lib = $this->getLibByID($doc->lib);
|
||||
$doc = $this->loadModel('file')->processImgURL($doc, $this->config->doc->editor->edit['id'], $this->post->uid);
|
||||
@@ -476,7 +477,6 @@ class docModel extends model
|
||||
|
||||
if($changed)
|
||||
{
|
||||
$oldDocContent = $this->dao->select('files,type')->from(TABLE_DOCCONTENT)->where('doc')->eq($docID)->andWhere('version')->eq($oldDoc->version)->fetch();
|
||||
$doc->version = $oldDoc->version + 1;
|
||||
$docContent = new stdclass();
|
||||
$docContent->doc = $docID;
|
||||
|
||||
Reference in New Issue
Block a user