includes/template.php
changeset 468 194a19711346
parent 458 c433348f3628
child 471 7906fb190fc1
equal deleted inserted replaced
467:e4bbd6fb8df3 468:194a19711346
   128     $this->theme = ( $name ) ? $name : $session->theme;
   128     $this->theme = ( $name ) ? $name : $session->theme;
   129     $this->style = ( $css ) ? $css : $session->style;
   129     $this->style = ( $css ) ? $css : $session->style;
   130     if ( !$this->theme )
   130     if ( !$this->theme )
   131     {
   131     {
   132       $this->theme = $this->theme_list[0]['theme_id'];
   132       $this->theme = $this->theme_list[0]['theme_id'];
   133       $this->style = substr($this->theme_list[0]['default_style'], 0, strlen($this->theme_list[0]['default_style'])-4);
   133       $this->style = preg_replace('/\.css$/', '', $this->theme_list[0]['default_style']);
   134     }
   134     }
   135     $this->theme_loaded = true;
   135     $this->theme_loaded = true;
   136   }
   136   }
   137   
   137   
   138   function init_vars()
   138   function init_vars()