Fix path settings (hopefully)
This commit is contained in:
parent
5b3eac3a29
commit
6419ddebe3
|
@ -248,7 +248,7 @@ class Solr
|
|||
// Set port if not set.
|
||||
$solrInfo['port'] = \TYPO3\CMS\Core\Utility\MathUtility::forceIntegerInRange($conf['solrPort'], 1, 65535, 8983);
|
||||
// Append core name to path.
|
||||
$solrInfo['path'] = trim($conf['solrPath'], '/') . '/solr';
|
||||
$solrInfo['path'] = trim($conf['solrPath'], '/');
|
||||
// Timeout
|
||||
$solrInfo['timeout'] = \TYPO3\CMS\Core\Utility\MathUtility::forceIntegerInRange($conf['solrTimeout'], 1, intval(ini_get('max_execution_time')), 10);
|
||||
return $solrInfo;
|
||||
|
@ -276,7 +276,7 @@ class Solr
|
|||
$host = $solrInfo['host'];
|
||||
}
|
||||
// Return entire request URL.
|
||||
return $solrInfo['scheme'] . '://' . $host . ':' . $solrInfo['port'] . '/' . $solrInfo['path'] . '/' . $core;
|
||||
return $solrInfo['scheme'] . '://' . $host . ':' . $solrInfo['port'] . '/' . $solrInfo['path'] . '/solr/' . $core;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -578,7 +578,7 @@ class Solr
|
|||
'scheme' => $solrInfo['scheme'],
|
||||
'host' => $solrInfo['host'],
|
||||
'port' => $solrInfo['port'],
|
||||
'path' => '/',
|
||||
'path' => '/' . $solrInfo['path'],
|
||||
'core' => $core,
|
||||
'username' => $solrInfo['username'],
|
||||
'password' => $solrInfo['password'],
|
||||
|
|
Loading…
Reference in New Issue