mirror of
https://github.com/silverstripe/silverstripe-fulltextsearch
synced 2024-10-22 12:05:29 +00:00
Setting include_path *before* requiring paths relying on it
This commit is contained in:
parent
02e8f7338e
commit
be507824d0
@ -65,9 +65,9 @@ class Solr {
|
||||
static $included = false;
|
||||
|
||||
if (!$included) {
|
||||
set_include_path(get_include_path() . PATH_SEPARATOR . Director::baseFolder() . '/fulltextsearch/thirdparty/solr-php-client');
|
||||
require_once('Apache/Solr/Service.php');
|
||||
require_once('Apache/Solr/Document.php');
|
||||
set_include_path(get_include_path() . PATH_SEPARATOR . Director::baseFolder() . '/fulltextsearch/thirdparty/solr-php-client');
|
||||
|
||||
$included = true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user