public function move($req, $res, $args)
    {
        $args['id'] = Container::get('hooks')->fire('controller.topic.move', $args['id']);

        if ($new_fid = Input::post('move_to_forum')) {
            $this->model->moveTo($args['fid'], $new_fid, $args['id']);
            return Router::redirect(Router::pathFor('Topic', ['id' => $args['id'],
                'name' => $args['name']]), __('Move topic redirect'));
        }

        // Check if there are enough forums to move the topic
        if (!$this->model->checkMovePossible()) {
            throw new  RunBBException(__('Nowhere to move'), 403);
        }

        View::setPageInfo([
            'title' => [Utils::escape(ForumSettings::get('o_board_title')), __('Moderate')],
            'active_page' => 'moderate',
            'action' => 'single',
            'topics' => $args['id'],
            'list_forums' => $this->model->getForumListMove($args['fid']),
        ])->display('@forum/moderate/move_topics');
    }
public function move($req, $res, $args)
    {
        $args['id'] = Container::get('hooks')->fire('controller.topic.move', $args['id']);

        if ($new_fid = Input::post('move_to_forum')) {
            $this->model->moveTo($args['fid'], $new_fid, $args['id']);
            return Router::redirect(Router::pathFor('Topic', ['id' => $args['id'],
                'name' => $args['name']]), __('Move topic redirect'));
        }

        // Check if there are enough forums to move the topic
        if (!$this->model->checkMovePossible()) {
            throw new  RunBBException(__('Nowhere to move'), 403);
        }

        View::setPageInfo([
            'title' => [Utils::escape(ForumSettings::get('o_board_title')), __('Moderate')],
            'active_page' => 'moderate',
            'action' => 'single',
            'topics' => $args['id'],
            'list_forums' => $this->model->getForumListMove($args['fid']),
        ])->display('@forum/moderate/move_topics');
    }
public function move ( $ req , $ res , $ args ) { $ args [ 'id' ] = Container :: get ( 'hooks' ) -> fire ( 'controller.topic.move' , $ args [ 'id' ] ) ; if ( $ new_fid = Input :: post ( 'move_to_forum' ) ) { $ this -> model -> moveTo ( $ args [ 'fid' ] , $ new_fid , $ args [ 'id' ] ) ; return Router :: redirect ( Router :: pathFor ( 'Topic' , [ 'id' => $ args [ 'id' ] , 'name' => $ args [ 'name' ] ] ) , __ ( 'Move topic redirect' ) ) ; } // Check if there are enough forums to move the topic if ( ! $ this -> model -> checkMovePossible ( ) ) { throw new RunBBException ( __ ( 'Nowhere to move' ) , 403 ) ; } View :: setPageInfo ( [ 'title' => [ Utils :: escape ( ForumSettings :: get ( 'o_board_title' ) ) , __ ( 'Moderate' ) ] , 'active_page' => 'moderate' , 'action' => 'single' , 'topics' => $ args [ 'id' ] , 'list_forums' => $ this -> model -> getForumListMove ( $ args [ 'fid' ] ) , ] ) -> display ( '@forum/moderate/move_topics' ) ; }
Move a single topic
Move a single topic