|
From: James A. <th...@us...> - 2001-11-07 11:17:58
|
Update of /cvsroot/phpbb/phpBB2/admin
In directory usw-pr-cvs1:/tmp/cvs-serv29872/admin
Modified Files:
admin_styles.php
Log Message:
Added some code to keep the admin from deleteing the forums default style
Index: admin_styles.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/admin/admin_styles.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** admin_styles.php 2001/11/07 11:10:56 1.4
--- admin_styles.php 2001/11/07 11:17:54 1.5
***************
*** 670,673 ****
--- 670,678 ----
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.'" />';
|