|
@@ -73,8 +73,8 @@ |
|
|
block discarded – undo |
|
73
|
73
|
$this->imagePath = $imagePath; |
|
74
|
74
|
$this->imageMime = mime_content_type($this->imagePath); |
|
75
|
75
|
$this->imageInfo = pathinfo($this->imagePath); |
|
76
|
|
- $this->imageName = hash("crc32", $this->imageInfo['basename']) . hash("crc32", |
|
77
|
|
- "{$width}{$height}") . ($this->imageMime == "image/jpeg" ? ".jpg" : ".png"); |
|
|
76
|
+ $this->imageName = hash("crc32", $this->imageInfo['basename']).hash("crc32", |
|
|
77
|
+ "{$width}{$height}").($this->imageMime == "image/jpeg" ? ".jpg" : ".png"); |
|
78
|
78
|
|
|
79
|
79
|
if (!in_array($this->imageMime, self::$allowedExt)) { |
|
80
|
80
|
return "Not a valid JPG or PNG image"; |
Please login to merge, or discard this patch.