From 7124ca71b774ee337791569c4012a9e3cff14c68 Mon Sep 17 00:00:00 2001 From: James Atkinson Date: Wed, 7 Nov 2001 11:17:55 +0000 Subject: [PATCH] Added some code to keep the admin from deleteing the forums default style git-svn-id: file:///svn/phpbb/trunk@1284 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/admin/admin_styles.php | 5 +++++ phpBB/language/lang_english/lang_main.php | 1 + 2 files changed, 6 insertions(+) diff --git a/phpBB/admin/admin_styles.php b/phpBB/admin/admin_styles.php index bad9f631fa..3f672ff970 100644 --- a/phpBB/admin/admin_styles.php +++ b/phpBB/admin/admin_styles.php @@ -669,6 +669,11 @@ switch($mode) if(!$confirm) { + if($style_id == $board_config['default_style']) + { + message_die(GENERAL_MESSAGE, $lang['Cannot_remove_style'], $lang['Error']); + } + $hidden_fields = ''; // diff --git a/phpBB/language/lang_english/lang_main.php b/phpBB/language/lang_english/lang_main.php index 02b2804fc3..f3ecc12240 100644 --- a/phpBB/language/lang_english/lang_main.php +++ b/phpBB/language/lang_english/lang_main.php @@ -1196,6 +1196,7 @@ $lang['span_class2'] = "Span Class 2"; $lang['span_class3'] = "Span Class 3"; $lang['Theme_updated'] = "The selected theme has been updated. Don't forget to export the new theme settings to the theme configuration file!"; $lang['Theme_created'] = "Theme created! Don't forget to export the new theme settings to the theme configuration file!"; +$lang['Cannot_remove_style'] = "The style you have selected is the current forum wide default style. Therefor, you cannot remove it. Please change the default style and try again."; //