Fixed TemplateFinder::searchTitle() accepts 1 parameters but 2 are passed

TickTackk

Well-known member
Affected version
2.3.4
In \XF\Admin\Controller\StyleController
PHP:
        if (strlen($filter['text']))
        {
            $templateFinder->Template->searchTitle($filter['text'], $filter['prefix']);
        }

In \XF\Finder\TemplateFinder
PHP:
    public function searchTitle($match)
    {
        if (strlen($match))
        {
            $this->where(
                $this->columnUtf8('title'),
                'LIKE',
                $this->escapeLike($match, '%?%')
            );
        }

        return $this;
    }


In \XF\Admin\Controller\LanguageController
PHP:
        if (strlen($filter['text']))
        {
            $phrasesFinder->Phrase->searchTitle($filter['text'], $filter['prefix']);
        }

In \XF\Finder\PhraseFinder
PHP:
    public function searchTitle($match, $prefixMatch = false)
    {
        if (strlen($match))
        {
            $this->where(
                $this->columnUtf8('title'),
                'LIKE',
                $this->escapeLike($match, $prefixMatch ? '?%' : '%?%')
            );
        }

        return $this;
    }
 
Thank you for reporting this issue, it has now been resolved. We are aiming to include any changes that have been made in a future XF release (2.3.5).

Change log:
Fix error 'TemplateFinder::searchTitle() accepts 1 parameters but 2 are passed'
There may be a delay before changes are rolled out to the XenForo Community.
 
Back
Top Bottom