Skip to content

Commit

Permalink
Ensure the autoloader path is register when the SearchApiWrapper is c…
Browse files Browse the repository at this point in the history
…reated (avoid errors in load)
  • Loading branch information
emanuele45 committed Jul 15, 2018
1 parent 61b9f29 commit d57b383
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sources/subs/Search/SearchApiWrapper.php
Expand Up @@ -37,6 +37,7 @@ class SearchApiWrapper
*/
public function __construct($config, $searchParams = null)
{
\Elk_Autoloader::instance()->register(SUBSDIR . '/Search', '\\ElkArte\\Search');
if (!is_object($config))
{
$config = new \ElkArte\ValuesContainer((array) $config);
Expand Down

0 comments on commit d57b383

Please sign in to comment.