@@ 258-270 (lines=13) @@ | ||
255 | * |
|
256 | * @return DataResponse |
|
257 | */ |
|
258 | public function removeCustomTemplate($template) { |
|
259 | ||
260 | $custom = $this->templatesService->getTemplatesList(true); |
|
261 | ||
262 | $k = array_search($template, $custom); |
|
263 | if ($k !== false) { |
|
264 | unset($custom[$k]); |
|
265 | } |
|
266 | ||
267 | $this->configService->setAppValue(ConfigService::CUSTOM_TEMPLATES, json_encode($custom)); |
|
268 | ||
269 | return $this->getSettingsAdmin(); |
|
270 | } |
|
271 | ||
272 | ||
273 | /** |
|
@@ 292-303 (lines=12) @@ | ||
289 | * |
|
290 | * @return DataResponse |
|
291 | */ |
|
292 | public function removeCustomTheme($theme) { |
|
293 | ||
294 | $custom = $this->themesService->getThemesList(true); |
|
295 | ||
296 | $k = array_search($theme, $custom); |
|
297 | if ($k !== false) { |
|
298 | unset($custom[$k]); |
|
299 | } |
|
300 | ||
301 | $this->configService->setAppValue(ConfigService::CUSTOM_THEMES, json_encode($custom)); |
|
302 | ||
303 | return $this->getSettingsAdmin(); |
|
304 | } |
|
305 | ||
306 | public function nc12personal() { |