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

https://tracker.phpbb.com/browse/PHPBB3-12883

PHPBB3-12883
yeah, better to merge them