phpbb\convert\convertor::final_jump PHP Method

final_jump() public method

This function marks the steps after syncing
public final_jump ( $final_jump )
    function final_jump($final_jump)
    {
        global $user, $src_db, $same_db, $db, $phpbb_root_path, $phpEx, $config, $cache;
        global $convert;
        $this->template->assign_block_vars('checks', array('S_LEGEND' => true, 'LEGEND' => $user->lang['PROCESS_LAST']));
        if ($final_jump == 1) {
            $db->sql_return_on_error(true);
            update_topics_posted();
            $this->template->assign_block_vars('checks', array('TITLE' => $user->lang['UPDATE_TOPICS_POSTED'], 'RESULT' => $user->lang['DONE']));
            if ($db->get_sql_error_triggered()) {
                $this->template->assign_vars(array('S_ERROR_BOX' => true, 'ERROR_TITLE' => $user->lang['UPDATE_TOPICS_POSTED'], 'ERROR_MSG' => $user->lang['UPDATE_TOPICS_POSTED_ERR']));
            }
            $db->sql_return_on_error(false);
            $this->finish_conversion();
            return;
        }
    }