Skip to content

Commit

Permalink
bugfix pdf extension case sensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
ma2thieu committed Apr 22, 2016
1 parent 09c05ab commit 2826375
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Entity/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ public function preUpload() {

$this->preview_path = null;

if ($this->extension == "pdf") {
if (strtolower($this->extension) == "pdf") {
if (extension_loaded('Imagick')) {
$this->preview_path = $this->path . '.' . $this->preview_format;
$this->_pdf_do = true;
Expand Down

0 comments on commit 2826375

Please sign in to comment.