Skip to content

Commit

Permalink
Merge pull request #379 from tyrant88/tyrant88-patch-140
Browse files Browse the repository at this point in the history
CS & behind proxy fix fix
  • Loading branch information
tyrant88 authored Sep 23, 2023
2 parents 6c8c02e + 43cd8fb commit c9202c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/search_it.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit c9202c0

Please sign in to comment.