From 4a2bd51e95a522525de57c4447eed8ed4ec651b1 Mon Sep 17 00:00:00 2001 From: Andrew O'Neil Date: Tue, 6 Nov 2007 03:20:23 +0000 Subject: [PATCH] Use filename instead of URL when loading image, as it works on more servers. git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@44336 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- code/ImageEditor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/ImageEditor.php b/code/ImageEditor.php index 94c40ec1..41bc5fc5 100644 --- a/code/ImageEditor.php +++ b/code/ImageEditor.php @@ -61,7 +61,7 @@ $command = $this->requestParams['command']; $this->checkFileExists($fileName); $fileInfo = pathinfo($fileName); - $gd = new GD($fileName); + $gd = new GD($this->url2File($fileName)); switch($command) { case 'rotate': $angle = $_POST['angle'];