Ejemplo n.º 1
0
 private function getThemeDtoByName($params)
 {
     if (!empty($params['name'])) {
         $themeDto = $this->themeService->findThemeByName(trim($params['name']));
     }
     if (!empty($themeDto)) {
         return $themeDto;
     }
     OW::getFeedback()->error(OW::getLanguage()->text('admin', 'manage_themes_theme_not_found'));
     $this->redirectToAction('chooseTheme');
 }
Ejemplo n.º 2
0
 public function reset()
 {
     $dto = $this->themeService->findThemeByName(OW::getConfig()->getValue('base', 'selectedTheme'));
     $this->themeService->resetTheme($dto->getId());
     $this->redirectToAction('settings');
 }
Ejemplo n.º 3
0
 public function reset()
 {
     $dto = $this->themeService->findThemeByName(OW::getConfig()->getValue('base', 'selectedTheme'));
     $this->themeService->resetTheme($dto->getId());
     $this->redirect(OW::getRouter()->urlForRoute('admin_themes_edit'));
 }