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