mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-13 05:01:43 +00:00
init only fulltext service which was selected in configuration
This commit is contained in:
parent
732fd81018
commit
0686cfecf5
|
@ -32,11 +32,13 @@ if($settings->_enableFullSearch) {
|
||||||
$indexconf = null;
|
$indexconf = null;
|
||||||
if(isset($GLOBALS['SEEDDMS_HOOKS']['initFulltext'])) {
|
if(isset($GLOBALS['SEEDDMS_HOOKS']['initFulltext'])) {
|
||||||
foreach($GLOBALS['SEEDDMS_HOOKS']['initFulltext'] as $hookObj) {
|
foreach($GLOBALS['SEEDDMS_HOOKS']['initFulltext'] as $hookObj) {
|
||||||
|
if (method_exists($hookObj, 'isFulltextService') && $hookObj->isFulltextService($settings->_fullSearchEngine)) {
|
||||||
if (method_exists($hookObj, 'initFulltextService')) {
|
if (method_exists($hookObj, 'initFulltextService')) {
|
||||||
$indexconf = $hookObj->initFulltextService(array('engine'=>$settings->_fullSearchEngine, 'dms'=>$dms, 'settings'=>$settings));
|
$indexconf = $hookObj->initFulltextService(array('engine'=>$settings->_fullSearchEngine, 'dms'=>$dms, 'settings'=>$settings));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if($indexconf) {
|
if($indexconf) {
|
||||||
$fulltextservice->addService($settings->_fullSearchEngine, $indexconf);
|
$fulltextservice->addService($settings->_fullSearchEngine, $indexconf);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user