| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | public function switchTheme($name) |
||
| 17 | { |
||
| 18 | $confEditor = new ThemeConfigEditor(); |
||
| 19 | |||
| 20 | $confEditor->setThemeName($name); |
||
| 21 | $confEditor->save(); |
||
| 22 | |||
| 23 | AlertsCollection::add(new Alert( |
||
| 24 | 'success', |
||
| 25 | 'Pomyślnie zmieniono szablon domyślny na '.$name.'.' |
||
| 26 | )); |
||
| 27 | |||
| 28 | $this->redirect(DIR.'/admin/appearance', 302); |
||
| 29 | } |
||
| 30 | } |
||
| 31 |