[ticket/12883] Do not use basename() to get the search class in tidy_search

PHPBB3-12883