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
This commit is contained in:
Andrew O'Neil 2007-11-06 03:20:23 +00:00
parent dbdd3a0fe0
commit 4a2bd51e95

View File

@ -61,7 +61,7 @@
$command = $this->requestParams['command']; $command = $this->requestParams['command'];
$this->checkFileExists($fileName); $this->checkFileExists($fileName);
$fileInfo = pathinfo($fileName); $fileInfo = pathinfo($fileName);
$gd = new GD($fileName); $gd = new GD($this->url2File($fileName));
switch($command) { switch($command) {
case 'rotate': case 'rotate':
$angle = $_POST['angle']; $angle = $_POST['angle'];