mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-11 09:35:00 +00:00
recreate an index if opening it fails
This commit is contained in:
parent
99d9edfc5a
commit
72b1f5d24c
|
@ -54,7 +54,10 @@ if(!isset($_GET['action']) || $_GET['action'] == 'show') {
|
|||
} else {
|
||||
$index = $indexconf['Indexer']::open($settings->_luceneDir);
|
||||
if(!$index) {
|
||||
UI::exitError(getMLText("admin_tools"),getMLText("no_fulltextindex"));
|
||||
$index = $indexconf['Indexer']::create($settings->_luceneDir);
|
||||
if(!$index) {
|
||||
UI::exitError(getMLText("admin_tools"),getMLText("no_fulltextindex"));
|
||||
}
|
||||
}
|
||||
$indexconf['Indexer']::init($settings->_stopWordsFile);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user