Index: trunk/kernel/action.php =================================================================== diff -u -N -r1054 -r1066 --- trunk/kernel/action.php (.../action.php) (revision 1054) +++ trunk/kernel/action.php (.../action.php) (revision 1066) @@ -1250,7 +1250,7 @@ $Themes = new clsThemeList(); foreach($_POST["itemlist"] as $id) { - $Themes->DeleteTheme($id); + $deleting_primary = (!$Themes->DeleteTheme($id)); } } break; Index: trunk/admin/config/config_theme.php =================================================================== diff -u -N -r822 -r1066 --- trunk/admin/config/config_theme.php (.../config_theme.php) (revision 822) +++ trunk/admin/config/config_theme.php (.../config_theme.php) (revision 1066) @@ -213,6 +213,15 @@ + + + + + +
+ +
" method=POST> Index: trunk/kernel/include/theme.php =================================================================== diff -u -N -r1054 -r1066 --- trunk/kernel/include/theme.php (.../theme.php) (revision 1054) +++ trunk/kernel/include/theme.php (.../theme.php) (revision 1066) @@ -657,7 +657,15 @@ function DeleteTheme($ThemeId) { $t = $this->GetItem($ThemeId); - if (!$t->Get('PrimaryTheme')) $t->Delete(); + if (!$t->Get('PrimaryTheme')) + { + $t->Delete(); + return true; + } + else + { + return false; + } } function SetPrimaryTheme($ThemeId)