From 26b629a6cdea3358439b3a6ea32814f8766813fe Mon Sep 17 00:00:00 2001 From: elliot sawyer Date: Fri, 21 Apr 2017 11:45:04 +1200 Subject: [PATCH] WIP fix solr path to use DIR, avoid hardcoded module name --- code/solr/Solr.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/solr/Solr.php b/code/solr/Solr.php index 3614776..073d933 100644 --- a/code/solr/Solr.php +++ b/code/solr/Solr.php @@ -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');