@@ -17,7 +17,7 @@ discard block |
||
| 17 | 17 | */ |
| 18 | 18 | |
| 19 | 19 | |
| 20 | -class Uploads{ |
|
| 20 | +class Uploads { |
|
| 21 | 21 | |
| 22 | 22 | |
| 23 | 23 | private $files; |
@@ -67,8 +67,8 @@ discard block |
||
| 67 | 67 | |
| 68 | 68 | if (empty($errors)) { |
| 69 | 69 | |
| 70 | - if (!file_exists(DIR_FILE . 'Upload' . DS . $dir . DS)) { |
|
| 71 | - mkdir(DIR_FILE . 'Upload' . DS . $dir . DS, 0777, true); |
|
| 70 | + if (!file_exists(DIR_FILE . 'Upload' . DS . $dir . DS)) { |
|
| 71 | + mkdir(DIR_FILE . 'Upload' . DS . $dir . DS, 0777, true); |
|
| 72 | 72 | |
| 73 | 73 | } // chmod('uploads/', 0755); |
| 74 | 74 | else if (!file_exists(DIR_FILE . 'Upload' . DS . 'Default' . DS . $dir . DS)) { |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | |
| 77 | 77 | } // chmod('uploads/', 0755); |
| 78 | 78 | |
| 79 | - if (move_uploaded_file($this->tmp, $this->path )) { |
|
| 79 | + if (move_uploaded_file($this->tmp, $this->path)) { |
|
| 80 | 80 | $output = '<div class="btn btn-success">'; |
| 81 | 81 | $output .= 'Ficheiro carregado com sucesso'; |
| 82 | 82 | $output .= '</div>'; |