mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-06-18 02:59:27 +00:00
create indexer only if action is not set or 'show' (Closes #340)
This commit is contained in:
parent
4c5dc52fa0
commit
ef6f263fc1
|
@ -37,6 +37,7 @@ if(!$settings->_enableFullSearch) {
|
||||||
UI::exitError(getMLText("admin_tools"),getMLText("fulltextsearch_disabled"));
|
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['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);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user