Mark child posts as commentable when parent is set to commentable

This commit is contained in:
Olaf Conradi 2013-09-20 23:50:23 +02:00
parent 7d0569f49b
commit b520f3547f

View File

@ -296,9 +296,10 @@ class Item extends BaseObject {
return $this->threaded;
}
public function set_commentable($val) {
$this->commentable = $val;
foreach($this->get_children() as $child)
$child->set_commentable($val);
}
public function is_commentable() {