Merge pull request #3202 from owncloud/swift_id

Set storage id for openstack swift backend
This commit is contained in:
Frank Karlitschek 2013-05-01 05:28:37 -07:00
commit db49b0aff8

View file

@ -287,6 +287,7 @@ class SWIFT extends \OC\Files\Storage\Common{
if ( ! $this->root || $this->root[0]!='/') {
$this->root='/'.$this->root;
}
$this->id = 'swift:' . $this->host . ':'.$this->root . ':' . $this->user;
} else {
throw new \Exception();
}