Translation - Μετάφραση

Resources, Technical Assistance and Technology News => Translator resources => Tips on Using Computers => Topic started by: spiros on 23 Feb, 2022, 18:44:43

Title: Each word in your search query must be at least two characters long (SMF 2 search error)
Post by: spiros on 23 Feb, 2022, 18:44:43
Each word in your search query must be at least two characters long (SMF 2 search error)

In Sources/Search.php

Find

Code: [Select]
        // Don't allow very, very short words.
        elseif ($smcFunc['strlen']($value) < 2)
        {
            $context['search_errors']['search_string_small_words'] = true;
            unset($searchArray[$index]);
        }

Replace

Code: [Select]
        // Don't allow very, very short words.
        elseif ($smcFunc['strlen']($value) < 2)
        {
            unset($searchArray[$index]);
        }