1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-24 22:35:46 +02:00
This commit is contained in:
Oliver Vogel
2013-03-29 17:09:38 +01:00
parent 56bfcfcc5c
commit ebbc29139f
2 changed files with 15 additions and 4 deletions

View File

@@ -0,0 +1,11 @@
<?php
namespace Intervention\Image;
use Exception;
use Closure;
abstract class AbstractImage
{
}

View File

@@ -191,10 +191,10 @@ class Image
// set file info
$info = pathinfo($path);
$this->dirname = $info['dirname'];
$this->basename = $info['basename'];
$this->extension = $info['extension'];
$this->filename = $info['filename'];
$this->dirname = array_key_exists('dirname', $info) ? $info['dirname'] : null;
$this->basename = array_key_exists('basename', $info) ? $info['basename'] : null;
$this->extension = array_key_exists('extension', $info) ? $info['extension'] : null;
$this->filename = array_key_exists('filename', $info) ? $info['filename'] : null;
// set image info
$info = getimagesize($path);