If no remote dir set for WebDAV, just use the index name by itself

This commit is contained in:
Sean Harvey 2013-02-13 09:56:07 +13:00
parent e89a89a009
commit a6fd64eacd
1 changed files with 6 additions and 2 deletions

View File

@ -154,7 +154,11 @@ class Solr_Configure extends BuildTask {
echo "done\n";
} else {
echo "Creating configuration...";
$service->coreCreate($index, "$remote/$index");
$instanceDir = $indexName;
if ($remote) {
$instanceDir = "$remote/$instanceDir";
}
$service->coreCreate($indexName, $instanceDir);
echo "done\n";
}
}
@ -250,4 +254,4 @@ class Solr_Reindex extends BuildTask {
foreach ($items as $item) { $index->add($item); $item->destroy(); }
}
}
}