@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | |
39 | 39 | case 'upload': |
40 | 40 | |
41 | - $uploadDir = PMF_ROOT_DIR . '/images/'; |
|
41 | + $uploadDir = PMF_ROOT_DIR.'/images/'; |
|
42 | 42 | $uploadFile = basename($_FILES['upload']['name']); |
43 | 43 | $isUploaded = false; |
44 | 44 | $height = $width = 0; |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | |
65 | 65 | if ($info) { |
66 | 66 | list($width, $height) = $info; |
67 | - if (move_uploaded_file($uploadedFile['tmp_name'], $uploadDir . $uploadFile)) { |
|
67 | + if (move_uploaded_file($uploadedFile['tmp_name'], $uploadDir.$uploadFile)) { |
|
68 | 68 | $isUploaded = true; |
69 | 69 | } else { |
70 | 70 | $isUploaded = false; |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | ?> |
74 | 74 | <script> |
75 | 75 | window.parent.window.pmfImageUpload.uploadFinished({ |
76 | - filename: '<?php echo $faqConfig->getDefaultUrl() . 'images/' . $uploadFile ?>', |
|
76 | + filename: '<?php echo $faqConfig->getDefaultUrl().'images/'.$uploadFile ?>', |
|
77 | 77 | result: '<?php echo $isUploaded ? 'file_uploaded' : 'error' ?>', |
78 | 78 | resultCode: '<?php echo $isUploaded ? 'success' : 'failed' ?>', |
79 | 79 | height: <?php echo $height ?>, |