Wikia/app — pull request #611 by relwell (2013-04-10 16:51:46+00:00)
Title: Bugid 100724

WikiaSearchAjaxController, which is only used for the second page of mobile, sets the query in the config through the initial param array, but there wasn't any logic to handle turning this string into a Wikia\Search\Query\Select object. This was causing fatals, as we were trying to call methods on the string returned by getQuery.

I've updated the Config code to check if the value set is a string, and call the appropriate mutator to correctly store the appropriate object in advance of returning the value stored in $this->params['query'].

I've also updated the WikiaSearchAjaxController class to use the more standard setQuery approach on the config class.