Setting include_path *before* requiring paths relying on it

This commit is contained in:
Ingo Schommer 2012-07-19 00:15:57 +02:00 committed by Hamish Friedlander
parent 02e8f7338e
commit be507824d0
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}