mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
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
This commit is contained in:
parent
292c07760a
commit
7124ca71b7
2 changed files with 6 additions and 0 deletions
|
@ -669,6 +669,11 @@ switch($mode)
|
||||||
|
|
||||||
if(!$confirm)
|
if(!$confirm)
|
||||||
{
|
{
|
||||||
|
if($style_id == $board_config['default_style'])
|
||||||
|
{
|
||||||
|
message_die(GENERAL_MESSAGE, $lang['Cannot_remove_style'], $lang['Error']);
|
||||||
|
}
|
||||||
|
|
||||||
$hidden_fields = '<input type="hidden" name="mode" value="'.$mode.'" /><input type="hidden" name="style_id" value="'.$style_id.'" />';
|
$hidden_fields = '<input type="hidden" name="mode" value="'.$mode.'" /><input type="hidden" name="style_id" value="'.$style_id.'" />';
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
|
@ -1196,6 +1196,7 @@ $lang['span_class2'] = "Span Class 2";
|
||||||
$lang['span_class3'] = "Span Class 3";
|
$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_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['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.";
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
Loading…
Add table
Reference in a new issue