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

Commit

Permalink
Remaining getOption() calls
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Jun 7, 2016
1 parent 84b8424 commit 06f3f13
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions core/src/core/src/pydio/Core/Services/ConfService.php
Expand Up @@ -449,8 +449,8 @@ public function switchRootDirInst($rootDirIndex=-1, $temporary=false)
if(isSet($this->configs["ACCESS_DRIVER"])) unset($this->configs["ACCESS_DRIVER"]);
}

if (isSet($this->configs["REPOSITORY"]) && $this->configs["REPOSITORY"]->getOption("CHARSET")!="") {
self::setContextCharset($this->configs["REPOSITORY"]->getOption("CHARSET"));
if (isSet($this->configs["REPOSITORY"]) && $this->configs["REPOSITORY"]->getSafeOption("CHARSET")!="") {
self::setContextCharset($this->configs["REPOSITORY"]->getSafeOption("CHARSET"));
} else {
self::clearContextCharset();
}
Expand Down
4 changes: 2 additions & 2 deletions core/src/plugins/access.smb/class.smbAccessWrapper.php
Expand Up @@ -77,7 +77,7 @@ protected static function initPath($path, $streamType, $storeOpenContext = false
$pass = $safeCreds["password"];
$_SESSION["AJXP_SESSION_REMOTE_PASS"] = $pass;
$credentials = "$login:$pass@";
$domain = $repoObject->getOption("DOMAIN");
$domain = $repoObject->getContextOption($node->getContext(), "DOMAIN");
if($domain != "") {
if((strcmp(substr($domain, -1), "/") === 0) || (strcmp(substr($domain, -1), "\\") === 0)){
$credentials = $domain.$credentials;
Expand All @@ -86,7 +86,7 @@ protected static function initPath($path, $streamType, $storeOpenContext = false
}
}
}
$basePath = $repoObject->getOption("PATH");
$basePath = $repoObject->getContextOption($node->getContext(), "PATH");
$fullPath = "smbclient://".$credentials.$host."/";//.$basePath."/".$path;
if ($basePath!="") {
$fullPath.=trim($basePath, "/\\" );
Expand Down
2 changes: 1 addition & 1 deletion core/src/plugins/core.access/src/AbstractAccessDriver.php
Expand Up @@ -518,7 +518,7 @@ protected function deldir($location, $repoData, $taskId = null)
public static function fixPermissions(AJXP_Node $node, &$stat, $remoteDetectionCallback = null)
{
$repoObject = $node->getRepository();
$fixPermPolicy = $repoObject->getOption("FIX_PERMISSIONS");
$fixPermPolicy = $repoObject->getContextOption($node->getContext(), "FIX_PERMISSIONS");
$loggedUser = $node->getUser();
if ($loggedUser == null) {
return;
Expand Down
Expand Up @@ -359,7 +359,7 @@ public function loadUserAlerts(\Psr\Http\Message\ServerRequestInterface $request
$nodeRepo = $node->getRepository();

if($nodeRepo != null && $nodeRepo->hasParent() && $nodeRepo->getParentId() == $repositoryFilter){
$currentRoot = $nodeRepo->getOption("PATH");
$currentRoot = $nodeRepo->getContextOption($ctx, "PATH");
$contentFilter = $nodeRepo->getContentFilter();
if(isSet($contentFilter)){
$nodePath = $contentFilter->filterExternalPath($node->getPath());
Expand Down

0 comments on commit 06f3f13

Please sign in to comment.