* Theme::set_theme() * * Sets the theme * * @param string $theme The theme * @return void */
($theme = 'default')
| 36 | * @return void |
| 37 | */ |
| 38 | function set_theme($theme = 'default') |
| 39 | { |
| 40 | $this->set_config('theme', $theme); |
| 41 | |
| 42 | $functions = $this->config('path').$this->config('theme').'/functions.php'; |
| 43 | if (file_exists($functions)) |
| 44 | { |
| 45 | include($functions); |
| 46 | } |
| 47 | } |
| 48 | |
| 49 | /** |
| 50 | * Theme::set_layout() |
no test coverage detected