create indexer only if action is not set or 'show' (Closes #340)

This commit is contained in:
Uwe Steinmann 2017-09-11 08:16:25 +02:00
parent 4c5dc52fa0
commit ef6f263fc1

View File

@ -37,6 +37,7 @@ if(!$settings->_enableFullSearch) {
UI::exitError(getMLText("admin_tools"),getMLText("fulltextsearch_disabled"));
}
if(!isset($_GET['action']) || $_GET['action'] == 'show')
if(isset($_GET['create']) && $_GET['create'] == 1) {
if(isset($_GET['confirm']) && $_GET['confirm'] == 1) {
$index = $indexconf['Indexer']::create($settings->_luceneDir);