mirror of
https://github.com/typecho/typecho.git
synced 2025-04-21 02:01:52 +02:00
fix draft version
This commit is contained in:
parent
b04a2ae7b3
commit
185a7bd9ea
@ -193,7 +193,7 @@ class Contents extends Base implements QueryInterface, RowFilterInterface, Prima
|
||||
$draft = $this->db->fetchObject($this->db->select('type', 'parent')
|
||||
->from('table.contents')->where('cid = ?', $cid));
|
||||
|
||||
if (preg_match("/_draft$/", $draft->type) && $draft->parent) {
|
||||
if ('revision' === $draft->type && $draft->parent) {
|
||||
$result = '@' . $result;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user