mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
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:
parent
dbdd3a0fe0
commit
4a2bd51e95
@ -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'];
|
||||||
|
Loading…
Reference in New Issue
Block a user