From 43cd8fb63960d38441f5b3f7d70391d6121dc5e8 Mon Sep 17 00:00:00 2001 From: Norbert Micheel Date: Sat, 23 Sep 2023 19:35:00 +0200 Subject: [PATCH] CS & behind proxy fix fix --- lib/search_it.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/search_it.php b/lib/search_it.php index d488d6e..f52bf86 100644 --- a/lib/search_it.php +++ b/lib/search_it.php @@ -216,14 +216,14 @@ public function generateIndex(): int */ public function indexArticle($_id, $_clang = false, $clearCache = false) { - $dont_use_socket = rex_config::has('search_it', 'dont_use_socket'); + $dont_use_socket = true == rex_config::get('search_it', 'dont_use_socket'); if ($_clang === false) { $langs = rex_clang::getAll(); } else { $langs = array(rex_clang::get($_clang)); } - if (rex_config::has('search_it', 'dont_use_socket')) { + if ($dont_use_socket) { $isBackend = rex::isBackend(); rex::setProperty('redaxo', false); }