get_parms('charset_tables', 'libstemmer'); if (is_array($parms['charset_tables'])) { $registry->set('sphinx_charset_tables', $parms['charset_tables'], registry::TYPE_ARRAY); } if (is_array($parms['libstemmer'])) { $registry->set('sphinx_user_stemmer', $parms['libstemmer'], registry::TYPE_ARRAY); } $sphinx_conf = new sphinx_configuration(); $selected_charsets = $registry->get('sphinx_charset_tables'); $selected_libstemmer = $registry->get('sphinx_user_stemmer'); $options = array( 'charset_tables' => (!is_array($selected_charsets) ? array() : $selected_charsets) , 'libstemmer' => (!is_array($selected_libstemmer) ? array() : $selected_libstemmer) ); ?>