fix type error in dir creation for categories
This commit is contained in:
parent
42735429da
commit
a7d7597d55
|
@ -3,7 +3,7 @@
|
||||||
<id>remoteStorage</id>
|
<id>remoteStorage</id>
|
||||||
<name>remoteStorage compatibility</name>
|
<name>remoteStorage compatibility</name>
|
||||||
<description>Enables your users to use ownCloud as their remote storage for unhosted applications.</description>
|
<description>Enables your users to use ownCloud as their remote storage for unhosted applications.</description>
|
||||||
<version>0.3</version>
|
<version>0.4</version>
|
||||||
<licence>AGPL or MIT</licence>
|
<licence>AGPL or MIT</licence>
|
||||||
<author>Michiel de Jong</author>
|
<author>Michiel de Jong</author>
|
||||||
<require>2</require>
|
<require>2</require>
|
||||||
|
|
|
@ -41,7 +41,7 @@ class OC_remoteStorage {
|
||||||
$token=uniqid();
|
$token=uniqid();
|
||||||
OC_Util::setupFS(OC_User::getUser());
|
OC_Util::setupFS(OC_User::getUser());
|
||||||
self::addToken($token, $appUrl, $categories);
|
self::addToken($token, $appUrl, $categories);
|
||||||
foreach($categories as $category) {
|
foreach(explode(',', $categories) as $category) {
|
||||||
//TODO: input checking on $category
|
//TODO: input checking on $category
|
||||||
$scopePathParts = array('remoteStorage', $category);
|
$scopePathParts = array('remoteStorage', $category);
|
||||||
for($i=0;$i<=count($scopePathParts);$i++){
|
for($i=0;$i<=count($scopePathParts);$i++){
|
||||||
|
|
Loading…
Reference in New Issue