Skip to content
Snippets Groups Projects
Commit cd714f0e authored by Vít Novotný's avatar Vít Novotný Committed by Demian Katz
Browse files

Aleph driver: use built-in implode() to concatenate path elements

parent fe2455e2
No related merge requests found
......@@ -479,10 +479,7 @@ class Aleph extends AbstractBase implements \Zend\Log\LoggerAwareInterface,
protected function doRestDLFRequest($path_elements, $params = null,
$method = 'GET', $body = null
) {
$path = '';
foreach ($path_elements as $path_element) {
$path .= $path_element . "/";
}
$path = implode('/', $path_elements);
$url = "http://$this->host:$this->dlfport/rest-dlf/" . $path;
$url = $this->appendQueryString($url, $params);
$result = $this->doHTTPRequest($url, $method, $body);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment