return; } update_option("importStatus", $filetype); // Some of these variables could eventually become user options. $dom = new DOMDocument('1.0', 'utf-8'); $dom->preserveWhiteSpace = false; $dom->loadXML($xhtml_file); $dom_xpath = new DOMXPath($dom); $dom_xpath->registerNamespace('xhtml', 'http://www.w3.org/1999/xhtml'); /* * * Load the Writing Systems (Languages) */ //if ( taxonomy_exists( $import->writing_system_taxonomy ) ) //{ $import->import_xhtml_writing_systems($dom, $dom_xpath); //} /* * Import */ $import->search_table_name = $wpdb->prefix . 'sil_search'; global $current_user; get_currentuserinfo(); if ($filetype == 'configured') { // Make sure we're not working on a reversal file. $reversals = $dom_xpath->query('(//xhtml:span[contains(@class, "reversal-form")])[1]'); if ($reversals->length > 0) { return; } //inform the user about which fields are available $arrFieldQueries = $import->getArrFieldQueries();