Fixed bad style update during theme uninstall.
authorDan
Thu, 06 Mar 2008 20:47:48 -0500
changeset 477 c4d6e9b3b964
parent 476 f26a69c40431
child 478 376a01d8386d
Fixed bad style update during theme uninstall.
plugins/admin/ThemeManager.php
--- a/plugins/admin/ThemeManager.php	Thu Mar 06 20:47:11 2008 -0500
+++ b/plugins/admin/ThemeManager.php	Thu Mar 06 20:47:48 2008 -0500
@@ -400,7 +400,7 @@
         $db->die_json();
       
       // Change all the users that were on that theme to the default
-      $default_style = $themes[$theme_default]['default_style'];
+      $default_style = $template->named_theme_list[$theme_default]['default_style'];
       $default_style = preg_replace('/\.css$/', '', $default_style);
       
       $theme_default = $db->escape($theme_default);