@@ -59,7 +59,7 @@ |
||
59 | 59 | { |
60 | 60 | $host = $_SERVER['HTTP_HOST']; |
61 | 61 | $https = !empty($_SERVER['HTTPS']) ? 'https' : 'http'; |
62 | - return $https . '://' . $host . '/'; |
|
62 | + return $https.'://'.$host.'/'; |
|
63 | 63 | } |
64 | 64 | |
65 | 65 | /** |
@@ -35,12 +35,12 @@ |
||
35 | 35 | } |
36 | 36 | |
37 | 37 | |
38 | - $filetowrite = $this->imageFolder . $tempFile['name']; |
|
38 | + $filetowrite = $this->imageFolder.$tempFile['name']; |
|
39 | 39 | move_uploaded_file($tempFile['tmp_name'], $filetowrite); |
40 | 40 | |
41 | 41 | // Respond to the successful upload with JSON. |
42 | 42 | echo json_encode(array('location' => $filetowrite)); |
43 | - } else { |
|
43 | + }else { |
|
44 | 44 | // Notify editor that the upload failed |
45 | 45 | header("HTTP/1.1 500 Server Error"); |
46 | 46 | } |