/** * Event: tierra.topicsolved.mark_solved_after * * @param Event $event */ public function topic_solved_after($event) { if ($event['column_data']['topic_status'] == ITEM_LOCKED) { if (!function_exists('phpbb_get_topic_data')) { include $this->root_path . 'includes/functions_mcp.' . $this->php_ext; } $topic_id = $event['topic_data']['topic_id']; $topic_data = phpbb_get_topic_data(array($topic_id)); $this->topic_mover->move_topics($topic_data, 'move_topics_when_locked_solved'); } }
/** * Event: core.mcp_lock_unlock_after * * @param Event $event */ public function mcp_lock_unlock_after($event) { if ($event['action'] == 'lock') { $this->topic_mover->move_topics($event['data'], 'move_topics_when_locked'); } }