Skip to content

Commit

Permalink
Update path to wideimage after vendor dir deletion.
Browse files Browse the repository at this point in the history
  • Loading branch information
pefringant committed Jan 13, 2015
1 parent cb1fc3d commit e81d6ae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions connectors/php/filemanager.class.php
Expand Up @@ -645,7 +645,7 @@ public function replace() {
if($this->is_image($imagePath) && $this->config['images']['resize']['enabled']) {
if ($size = @getimagesize($imagePath)){
if ($size[0] > $this->config['images']['resize']['maxWidth'] || $size[1] > $this->config['images']['resize']['maxHeight']) {
require_once('./inc/vendor/wideimage/lib/WideImage.php');
require_once('./inc/wideimage/lib/WideImage.php');

$image = WideImage::load($imagePath);
$resized = $image->resize($this->config['images']['resize']['maxWidth'], $this->config['images']['resize']['maxHeight'], 'inside');
Expand Down Expand Up @@ -728,7 +728,7 @@ public function add() {
if($this->is_image($imagePath) && $this->config['images']['resize']['enabled']) {
if ($size = @getimagesize($imagePath)){
if ($size[0] > $this->config['images']['resize']['maxWidth'] || $size[1] > $this->config['images']['resize']['maxHeight']) {
require_once('./inc/vendor/wideimage/lib/WideImage.php');
require_once('./inc/wideimage/lib/WideImage.php');

$image = WideImage::load($imagePath);
$resized = $image->resize($this->config['images']['resize']['maxWidth'], $this->config['images']['resize']['maxHeight'], 'inside');
Expand Down Expand Up @@ -1309,7 +1309,7 @@ private function get_thumbnail_path($path) {
*/
private function get_thumbnail($path) {

require_once('./inc/vendor/wideimage/lib/WideImage.php');
require_once('./inc/wideimage/lib/WideImage.php');

$thumbnail_fullpath = $this->get_thumbnail_path($path);

Expand Down

0 comments on commit e81d6ae

Please sign in to comment.