Revision 1414
Added by Dietmar almost 14 years ago
index.php | ||
---|---|---|
63 | 63 |
$template->set_var('DISPLAY_ADMINTOOLS', 'display:none;'); |
64 | 64 |
} |
65 | 65 |
|
66 |
$msg = (file_exists(WB_PATH.'/install/')) ? $MESSAGE['START']['INSTALL_DIR_EXISTS'] : ''; |
|
67 |
$msg .= (file_exists(WB_PATH.'/upgrade-script.php')) ? '<br />'.'upgrade-script.php '.$TEXT['DELETE'] : ''; |
|
68 |
|
|
66 | 69 |
// Check if installation directory still exists |
67 |
if(file_exists(WB_PATH.'/install/')) { |
|
70 |
if(file_exists(WB_PATH.'/install/') || file_exists(WB_PATH.'/upgrade-script.php') ) {
|
|
68 | 71 |
// Check if user is part of Adminstrators group |
69 | 72 |
if(in_array(1, $admin->get_groups_id())) |
70 | 73 |
{ |
71 |
$template->set_var('WARNING', $MESSAGE['START']['INSTALL_DIR_EXISTS'].'<br />'.'upgrade-script.php '.$TEXT['DELETE']);
|
|
74 |
$template->set_var('WARNING', $msg );
|
|
72 | 75 |
} else { |
73 | 76 |
$template->set_var('DISPLAY_WARNING', 'display:none;'); |
74 | 77 |
} |
Also available in: Unified diff
fix wrong error message in media
backend start warning if upgrade-script exists