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