mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-14 13:42:04 +00:00
check if index could be created
This commit is contained in:
parent
4b94100cbe
commit
fb065f1a61
|
@ -38,6 +38,9 @@ if(!$settings->_enableFullSearch) {
|
||||||
if(isset($_GET['create']) && $_GET['create'] == 1) {
|
if(isset($_GET['create']) && $_GET['create'] == 1) {
|
||||||
if(isset($_GET['confirm']) && $_GET['confirm'] == 1) {
|
if(isset($_GET['confirm']) && $_GET['confirm'] == 1) {
|
||||||
$index = $indexconf['Indexer']::create($settings->_luceneDir);
|
$index = $indexconf['Indexer']::create($settings->_luceneDir);
|
||||||
|
if(!$index) {
|
||||||
|
UI::exitError(getMLText("admin_tools"),getMLText("no_fulltextindex"));
|
||||||
|
}
|
||||||
$indexconf['Indexer']::init($settings->_stopWordsFile);
|
$indexconf['Indexer']::init($settings->_stopWordsFile);
|
||||||
} else {
|
} else {
|
||||||
header('Location: out.CreateIndex.php');
|
header('Location: out.CreateIndex.php');
|
||||||
|
|
Loading…
Reference in New Issue
Block a user