예제 #1
0
 protected function onNodeChange($id_node, $node, $old_node)
 {
     $this->O->event()->trigger($this->namespace . '.node.change');
     $uid = $this->O->auth()->uid();
     $label = Filter::text('node.revision.label', $node, 'revision');
     $comment = Filter::text('node.revision.comment', $node);
     $this->addRevision($id_node, $uid, $label, $comment, Date::fromStrtotime(time())->mysqlDateTime(), $old_node);
 }