Update manage_admin.php

This commit is contained in:
Roman Kelesidis 2025-08-21 11:24:25 +03:00
commit a2223f6f04
No known key found for this signature in database
GPG key ID: D8157C4D4C4C6DB4

View file

@ -48,6 +48,10 @@ switch ($mode) {
$this->response['template_cache_html'] = '<span class="seed bold">' . $lang['ALL_TEMPLATE_CLEARED'] . '</span>'; $this->response['template_cache_html'] = '<span class="seed bold">' . $lang['ALL_TEMPLATE_CLEARED'] . '</span>';
break; break;
case 'indexer': case 'indexer':
if ($bb_cfg['search_engine_type'] != 'sphinx') {
return;
}
exec("indexer --config {$bb_cfg['sphinx_config_path']} --all --rotate", $result); exec("indexer --config {$bb_cfg['sphinx_config_path']} --all --rotate", $result);
if (!is_file($bb_cfg['sphinx_config_path'] . ".log")) { if (!is_file($bb_cfg['sphinx_config_path'] . ".log")) {