Permalink
Browse files

Fix AJXP_MetaStreamWrapper scope

  • Loading branch information...
1 parent 4e78747 commit 7dafda98bb0be454252281ddcb6a8988f7e14bf5 @cdujeu cdujeu committed May 9, 2016
@@ -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";
}
}
@@ -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");

0 comments on commit 7dafda9

Please sign in to comment.