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

Commit

Permalink
Fix AJXP_MetaStreamWrapper scope
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed May 9, 2016
1 parent 4e78747 commit 7dafda9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/src/plugins/core.access/src/AJXP_Node.php
Expand Up @@ -606,7 +606,7 @@ protected function parseUrl()
$pServ = PluginsService::getInstance();
$this->_wrapperClassName = $pServ->getWrapperClassName($this->urlParts["scheme"]);
}else if($this->urlParts["scheme"] == "pydio"){
$this->_wrapperClassName = "AJXP_MetaStreamWrapper";
$this->_wrapperClassName = "Pydio\\Access\\Core\\AJXP_MetaStreamWrapper";
}
}

Expand Down
3 changes: 2 additions & 1 deletion core/src/plugins/editor.diaporama/class.ImagePreviewer.php
Expand Up @@ -126,8 +126,9 @@ public function generateThumbnail($masterFile, $targetFile)
$size = $this->currentDimension;
require_once(AJXP_INSTALL_PATH."/plugins/editor.diaporama/PThumb.lib.php");
$pThumb = new PThumb($this->getFilteredOption("THUMBNAIL_QUALITY"), $this->getFilteredOption("EXIF_ROTATION"));

if (!$pThumb->isError()) {
$pThumb->remote_wrapper = "AJXP_MetaStreamWrapper";
$pThumb->remote_wrapper = "Pydio\\Access\\Core\\AJXP_MetaStreamWrapper";
//$this->logDebug("Will fit thumbnail");
$sizes = $pThumb->fit_thumbnail($masterFile, $size, -1, 1, true);
//$this->logDebug("Will print thumbnail");
Expand Down

0 comments on commit 7dafda9

Please sign in to comment.