diff --git a/library/ajax/manage_admin.php b/library/ajax/manage_admin.php index cb0249239..bb34dfce7 100644 --- a/library/ajax/manage_admin.php +++ b/library/ajax/manage_admin.php @@ -48,6 +48,10 @@ switch ($mode) { $this->response['template_cache_html'] = '' . $lang['ALL_TEMPLATE_CLEARED'] . ''; break; case 'indexer': + if ($bb_cfg['search_engine_type'] != 'sphinx') { + return; + } + exec("indexer --config {$bb_cfg['sphinx_config_path']} --all --rotate", $result); if (!is_file($bb_cfg['sphinx_config_path'] . ".log")) {