Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Fix share watch
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed May 9, 2014
1 parent acc1c3b commit 96d050c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/src/plugins/action.share/class.ShareCenter.php
Expand Up @@ -251,14 +251,15 @@ public function switchAction($action, $httpVars, $fileVars)
$file = AJXP_Utils::decodeSecureMagic($httpVars["file"]);
$watchValue = $httpVars["set_watch"] == "true" ? true : false;
$folder = false;
$shNode = new AJXP_Node($this->urlBase.$file);
if (isSet($httpVars["element_type"]) && $httpVars["element_type"] == "folder") {
$folder = true;
$node = new AJXP_Node($this->baseProtocol."://".$httpVars["repository_id"]."/");
} else {
$node = new AJXP_Node($this->urlBase.$file);
}

$this->getSharesFromMeta($node, $shares, false);
$this->getSharesFromMeta($shNode, $shares, false);
if(!count($shares)){
break;
}
Expand Down

0 comments on commit 96d050c

Please sign in to comment.