Skip to content

Commit

Permalink
Merge pull request #1403 from Marc-pi/develop
Browse files Browse the repository at this point in the history
fix typo in image driver lib calling for gmagik, reverse driver order
  • Loading branch information
taiwen committed Apr 1, 2016
2 parents e2f0e4a + 6a5fa3d commit cab82fa
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/Pi/Application/Service/Image.php
Original file line number Diff line number Diff line change
Expand Up @@ -215,17 +215,17 @@ public function getDriver($driver = '')
break;
case 'imagick':
if (class_exists('Imagick')) {
$driverClass = 'Imagine\Gmagick\Imagine';
$driverClass = 'Imagine\Imagick\Imagine';
}
break;
case 'auto':
default:
if (function_exists('gd_info')) {
$driverClass = 'Imagine\Gd\Imagine';
} elseif (class_exists('Gmagick')) {
if (class_exists('Gmagick')) {
$driverClass = 'Imagine\Gmagick\Imagine';
} elseif (class_exists('Imagick')) {
$driverClass = 'Imagine\Gmagick\Imagine';
$driverClass = 'Imagine\Imagick\Imagine';
} elseif (function_exists('gd_info')) {
$driverClass = 'Imagine\Gd\Imagine';
}
break;
}
Expand Down

0 comments on commit cab82fa

Please sign in to comment.