|
@@ 243-250 (lines=8) @@
|
| 240 |
|
* |
| 241 |
|
* @return DataResponse |
| 242 |
|
*/ |
| 243 |
|
public function addCustomTemplate($template) { |
| 244 |
|
|
| 245 |
|
$custom = $this->templatesService->getTemplatesList(true); |
| 246 |
|
array_push($custom, $template); |
| 247 |
|
$this->configService->setAppValue(ConfigService::CUSTOM_TEMPLATES, json_encode($custom)); |
| 248 |
|
|
| 249 |
|
return $this->getSettingsAdmin(); |
| 250 |
|
} |
| 251 |
|
|
| 252 |
|
/** |
| 253 |
|
* @param string $template |
|
@@ 277-284 (lines=8) @@
|
| 274 |
|
* |
| 275 |
|
* @return DataResponse |
| 276 |
|
*/ |
| 277 |
|
public function addCustomTheme($theme) { |
| 278 |
|
|
| 279 |
|
$custom = $this->themesService->getThemesList(true); |
| 280 |
|
array_push($custom, $theme); |
| 281 |
|
$this->configService->setAppValue(ConfigService::CUSTOM_THEMES, json_encode($custom)); |
| 282 |
|
|
| 283 |
|
return $this->getSettingsAdmin(); |
| 284 |
|
} |
| 285 |
|
|
| 286 |
|
/** |
| 287 |
|
* @param string $theme |