diff options
| author | James Atkinson <thefinn@users.sourceforge.net> | 2001-11-07 11:17:55 +0000 |
|---|---|---|
| committer | James Atkinson <thefinn@users.sourceforge.net> | 2001-11-07 11:17:55 +0000 |
| commit | 7124ca71b774ee337791569c4012a9e3cff14c68 (patch) | |
| tree | f9ea3db61abdb261b7378dcbb4c90f1e5d111d50 /phpBB/admin/admin_styles.php | |
| parent | 292c07760a655fd5b54a018011981a41800e1742 (diff) | |
| download | forums-7124ca71b774ee337791569c4012a9e3cff14c68.tar forums-7124ca71b774ee337791569c4012a9e3cff14c68.tar.gz forums-7124ca71b774ee337791569c4012a9e3cff14c68.tar.bz2 forums-7124ca71b774ee337791569c4012a9e3cff14c68.tar.xz forums-7124ca71b774ee337791569c4012a9e3cff14c68.zip | |
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
Diffstat (limited to 'phpBB/admin/admin_styles.php')
| -rw-r--r-- | phpBB/admin/admin_styles.php | 5 |
1 files changed, 5 insertions, 0 deletions
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 = '<input type="hidden" name="mode" value="'.$mode.'" /><input type="hidden" name="style_id" value="'.$style_id.'" />'; // |
