- Timestamp:
- 09/24/08 12:04:49
(2 months ago)
- Author:
- scitech
- Message:
Fixed #1544: Add SQL user has only one option -> useless. Fixed #1545: HTML bug with hint for updates. Fixed #1546: Tiny english typo
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r1355 |
r1359 |
|
| 83 | 83 | if($execute) { |
|---|
| 84 | 84 | databaseUpdate::getInstance()->executeUpdates(); |
|---|
| | 85 | if( databaseUpdate::getInstance()->getErrorMessage() != "" ) |
|---|
| | 86 | system_message(databaseUpdate::getInstance()->getErrorMessage()); |
|---|
| 85 | 87 | header('Location:' . $_SERVER['PHP_SELF']); |
|---|
| 86 | 88 | } |
|---|
| r1355 |
r1359 |
|
| 76 | 76 | if (criticalUpdate::getInstance()->checkUpdateExists()) { |
|---|
| 77 | 77 | criticalUpdate::getInstance()->executeUpdates(); |
|---|
| | 78 | if(criticalUpdate::getInstance()->getErrorMessage()!="") |
|---|
| | 79 | system_message(criticalUpdate::getInstance()->getErrorMessage()); |
|---|
| 78 | 80 | $tpl->assign(array('CRITICAL_MESSAGE' => 'Critical update has been performed')); |
|---|
| 79 | 81 | $tpl->parse('CRITICAL_UPDATE_MESSAGE', 'critical_update_message'); |
|---|
| … | … | |
| 84 | 86 | |
|---|
| 85 | 87 | if(databaseUpdate::getInstance()->checkUpdateExists()) { |
|---|
| 86 | | $tpl->assign(array('DATABASE_UPDATE' => '<a href="database_update.php" class=\"link\">' . tr('A database update is available') . '</a>')); |
|---|
| | 88 | $tpl->assign(array('DATABASE_UPDATE' => '<a href="database_update.php" class="link">' . tr('A database update is available') . '</a>')); |
|---|
| 87 | 89 | $tpl->parse('DATABASE_UPDATE_MESSAGE', 'database_update_message'); |
|---|
| 88 | 90 | } else { |
|---|
| … | … | |
| 97 | 99 | |
|---|
| 98 | 100 | if (versionUpdate::getInstance()->checkUpdateExists()) { |
|---|
| 99 | | $tpl->assign(array('UPDATE' => '<a href="ispcp_updates.php" class=\"link\">' . tr('New ispCP update is now available') . '</a>')); |
|---|
| | 101 | $tpl->assign(array('UPDATE' => '<a href="ispcp_updates.php" class="link">' . tr('New ispCP update is now available') . '</a>')); |
|---|
| 100 | 102 | $tpl->parse('UPDATE_MESSAGE', 'update_message'); |
|---|
| 101 | 103 | } else { |
|---|
| 102 | | $tpl->assign(array('UPDATE_MESSAGE' => '')); |
|---|
| | 104 | if( versionUpdate::getInstance()->getErrorMessage() != "" ) { |
|---|
| | 105 | $tpl->assign(array('UPDATE' => versionUpdate::getInstance()->getErrorMessage())); |
|---|
| | 106 | $tpl->parse('UPDATE_MESSAGE', 'update_message'); |
|---|
| | 107 | } else { |
|---|
| | 108 | $tpl->assign(array('UPDATE_MESSAGE' => '')); |
|---|
| | 109 | } |
|---|
| 103 | 110 | } |
|---|
| 104 | 111 | } |
|---|
| r1355 |
r1359 |
|
| 67 | 67 | $tpl->parse('UPDATE_INFOS', 'update_infos'); |
|---|
| 68 | 68 | } else { |
|---|
| | 69 | if( versionUpdate::getInstance()->getErrorMessage() != "" ) { |
|---|
| | 70 | $tpl->assign(array('TR_MESSAGE' => versionUpdate::getInstance()->getErrorMessage())); |
|---|
| | 71 | } |
|---|
| 69 | 72 | $tpl->assign('UPDATE_INFOS', ''); |
|---|
| 70 | 73 | } |
|---|
|
Download in other formats:
#########################################################################
# Site footer - Contents are automatically inserted after main Trac HTML
?>