You are here

private function Sweaver::__construct in Sweaver 6

Same name and namespace in other branches
  1. 7 sweaver.inc \Sweaver::__construct()

* Constructor. * Private constructor to make sure this is never * instantiated by the constructor.

File

./sweaver.inc, line 22
Class Sweaver.

Class

Sweaver
@file Class Sweaver.

Code

private function __construct() {
  if ($theme_key = sweaver_session(NULL, 'sweaver_theme')) {
    $this
      ->set_current_style($theme_key);
  }
  else {
    $this
      ->set_current_style(variable_get('theme_default', 'garland'));
  }
  if (!$this
    ->is_configured()) {
    $this
      ->register_plugins_configuration();
  }
}