mirror of
https://github.com/silverstripe/silverstripe-fulltextsearch
synced 2024-10-22 14:05:29 +02:00
Merge branch '3.8' into 3
This commit is contained in:
commit
8da0f2c2cc
@ -13,7 +13,7 @@ class SolrConfigStore_File implements SolrConfigStore
|
|||||||
public function __construct($config)
|
public function __construct($config)
|
||||||
{
|
{
|
||||||
$this->local = $config['path'];
|
$this->local = $config['path'];
|
||||||
$this->remote = isset($config['remotepath']) ? $config['remotepath'] : $config['path'];
|
$this->remote = !empty($config['remotepath']) ? $config['remotepath'] : $config['path'];
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getTargetDir($index)
|
public function getTargetDir($index)
|
||||||
|
@ -26,12 +26,12 @@ class SolrConfigStore_Post implements SolrConfigStore
|
|||||||
|
|
||||||
$this->url = implode('', [
|
$this->url = implode('', [
|
||||||
'http://',
|
'http://',
|
||||||
isset($config['auth']) ? $config['auth'] . '@' : '',
|
!empty($config['auth']) ? $config['auth'] . '@' : '',
|
||||||
$options['host'] . ':' . $options['port'],
|
$options['host'] . ':' . $options['port'],
|
||||||
$config['path']
|
$config['path']
|
||||||
]);
|
]);
|
||||||
|
|
||||||
if (isset($config['remotepath'])) {
|
if (!empty($config['remotepath'])) {
|
||||||
$this->remote = $config['remotepath'];
|
$this->remote = $config['remotepath'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -18,11 +18,14 @@ class SolrConfigStore_WebDAV implements SolrConfigStore
|
|||||||
|
|
||||||
$this->url = implode('', array(
|
$this->url = implode('', array(
|
||||||
'http://',
|
'http://',
|
||||||
isset($config['auth']) ? $config['auth'] . '@' : '',
|
!empty($config['auth']) ? $config['auth'] . '@' : '',
|
||||||
$options['host'] . ':' . (isset($config['port']) ? $config['port'] : $options['port']),
|
$options['host'] . ':' . (!empty($config['port']) ? $config['port'] : $options['port']),
|
||||||
$config['path']
|
$config['path']
|
||||||
));
|
));
|
||||||
$this->remote = $config['remotepath'];
|
|
||||||
|
if (!empty($config['remotepath'])) {
|
||||||
|
$this->remote = $config['remotepath'];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getTargetDir($index)
|
public function getTargetDir($index)
|
||||||
|
Loading…
Reference in New Issue
Block a user