예제 #1
0
파일: themes.php 프로젝트: vazahat/dudex
 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');
 }
예제 #2
0
파일: theme.php 프로젝트: vazahat/dudex
 public function reset()
 {
     $dto = $this->themeService->findThemeByName(OW::getConfig()->getValue('base', 'selectedTheme'));
     $this->themeService->resetTheme($dto->getId());
     $this->redirectToAction('settings');
 }
예제 #3
0
파일: theme.php 프로젝트: vBulleteen/oxwall
 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'));
 }