WIP fix solr path to use DIR, avoid hardcoded module name

This commit is contained in:
elliot sawyer 2017-04-21 11:45:04 +12:00
parent 19b38e0811
commit 26b629a6cd
1 changed files with 1 additions and 1 deletions

View File

@ -154,7 +154,7 @@ class Solr
static $included = false;
if (!$included) {
$solr_php_path = BASE_PATH . DIRECTORY_SEPARATOR . 'fulltextsearch/thirdparty/solr-php-client';
$solr_php_path = __DIR__. '/../..' . '/thirdparty/solr-php-client';
set_include_path($solr_php_path);
require_once($solr_php_path . DIRECTORY_SEPARATOR . 'Apache/Solr/Service.php');
require_once($solr_php_path . DIRECTORY_SEPARATOR . 'Apache/Solr/Document.php');