includes/template.php
changeset 468 194a19711346
parent 458 c433348f3628
child 471 7906fb190fc1
--- a/includes/template.php	Sat Mar 01 18:56:37 2008 -0500
+++ b/includes/template.php	Sat Mar 01 18:57:07 2008 -0500
@@ -130,7 +130,7 @@
     if ( !$this->theme )
     {
       $this->theme = $this->theme_list[0]['theme_id'];
-      $this->style = substr($this->theme_list[0]['default_style'], 0, strlen($this->theme_list[0]['default_style'])-4);
+      $this->style = preg_replace('/\.css$/', '', $this->theme_list[0]['default_style']);
     }
     $this->theme_loaded = true;
   }