@@ 210-217 (lines=8) @@ | ||
207 | * |
|
208 | * @return DataResponse |
|
209 | */ |
|
210 | public function addCustomTemplate($template) { |
|
211 | ||
212 | $custom = $this->templatesService->getTemplatesList(true); |
|
213 | array_push($custom, $template); |
|
214 | $this->configService->setAppValue(ConfigService::CUSTOM_TEMPLATES, json_encode($custom)); |
|
215 | ||
216 | return $this->getSettingsAdmin(); |
|
217 | } |
|
218 | ||
219 | /** |
|
220 | * @param string $template |
|
@@ 244-251 (lines=8) @@ | ||
241 | * |
|
242 | * @return DataResponse |
|
243 | */ |
|
244 | public function addCustomTheme($theme) { |
|
245 | ||
246 | $custom = $this->themesService->getThemesList(true); |
|
247 | array_push($custom, $theme); |
|
248 | $this->configService->setAppValue(ConfigService::CUSTOM_THEMES, json_encode($custom)); |
|
249 | ||
250 | return $this->getSettingsAdmin(); |
|
251 | } |
|
252 | ||
253 | /** |
|
254 | * @param string $theme |