|
@@ 177-182 (lines=6) @@
|
| 174 |
|
Http::STATUS_UNPROCESSABLE_ENTITY); |
| 175 |
|
} |
| 176 |
|
$name = ''; |
| 177 |
|
if(!empty($newLogo)) { |
| 178 |
|
$target = $this->rootFolder->newFile('themedinstancelogo'); |
| 179 |
|
stream_copy_to_stream(fopen($newLogo['tmp_name'], 'r'), $target->fopen('w')); |
| 180 |
|
$this->template->set('logoMime', $newLogo['type']); |
| 181 |
|
$name = $newLogo['name']; |
| 182 |
|
} |
| 183 |
|
if(!empty($newBackgroundLogo)) { |
| 184 |
|
$target = $this->rootFolder->newFile('themedbackgroundlogo'); |
| 185 |
|
stream_copy_to_stream(fopen($newBackgroundLogo['tmp_name'], 'r'), $target->fopen('w')); |
|
@@ 183-188 (lines=6) @@
|
| 180 |
|
$this->template->set('logoMime', $newLogo['type']); |
| 181 |
|
$name = $newLogo['name']; |
| 182 |
|
} |
| 183 |
|
if(!empty($newBackgroundLogo)) { |
| 184 |
|
$target = $this->rootFolder->newFile('themedbackgroundlogo'); |
| 185 |
|
stream_copy_to_stream(fopen($newBackgroundLogo['tmp_name'], 'r'), $target->fopen('w')); |
| 186 |
|
$this->template->set('backgroundMime', $newBackgroundLogo['type']); |
| 187 |
|
$name = $newBackgroundLogo['name']; |
| 188 |
|
} |
| 189 |
|
|
| 190 |
|
return new DataResponse( |
| 191 |
|
[ |