phpbb\search\fulltext_sphinx::init PHP Method

init() public method

Checks permissions and paths, if everything is correct it generates the config file
public init ( ) : string | boolean
return string | boolean Language key of the error/incompatiblity encountered, or false if successful
    public function init()
    {
        if ($this->db->get_sql_layer() != 'mysql' && $this->db->get_sql_layer() != 'mysql4' && $this->db->get_sql_layer() != 'mysqli' && $this->db->get_sql_layer() != 'postgres') {
            return $this->user->lang['FULLTEXT_SPHINX_WRONG_DATABASE'];
        }
        // Move delta to main index each hour
        $this->config->set('search_gc', 3600);
        return false;
    }