From 83d957fca4a8c7124d76b2d1ca154648e7e3769e Mon Sep 17 00:00:00 2001 From: skodak Date: Wed, 4 Jun 2008 21:36:59 +0000 Subject: [PATCH] MDL-15096 removed some obsoleted installation code --- search/indexer.php | 7 ------- search/indexlib.php | 23 ----------------------- 2 files changed, 30 deletions(-) diff --git a/search/indexer.php b/search/indexer.php index a8a6a2ae2b..3365831950 100644 --- a/search/indexer.php +++ b/search/indexer.php @@ -104,13 +104,6 @@ $separator = (array_key_exists('WINDIR', $_SERVER)) ? ';' : ':' ; Zend_Search_Lucene_Analysis_Analyzer::setDefault(new Zend_Search_Lucene_Analysis_Analyzer_Common_Utf8()); $index = new Zend_Search_Lucene($index_path, true); - /* - OBSOLETE REGENERATION - DB installs with search block by now - if (!$dbcontrol->checkDB()) { - search_pexit("Database error. Please check settings/files."); - } - */ - /// New regeneration mtrace('Deleting old index entries.'); diff --git a/search/indexlib.php b/search/indexlib.php index 44168750af..be771b8b4a 100644 --- a/search/indexlib.php +++ b/search/indexlib.php @@ -193,29 +193,6 @@ class IndexDBControl { } } //checkTableExists - /** - * is our database setup valid? - * @uses db, CFG - * @deprecated Database is installed at install and should not be dropped out - */ - public function checkDB() { - global $CFG, $DB; - - $sqlfile = "{$CFG->dirroot}/search/db/$CFG->dbtype.sql"; - $ret = false; - if ($this->checkTableExists()) { - execute_sql('drop table '.$CFG->prefix.SEARCH_DATABASE_TABLE, false); - } - - //turn output buffering on - to hide modify_database() output - ob_start(); - $ret = modify_database($sqlfile, '', false); - - //chuck the buffer and resume normal operation - ob_end_clean(); - return $ret; - } //checkDB - /** * add a document record to the table * @param document must be a Lucene SearchDocument instance -- 2.39.5