Changeset 1154
- Timestamp:
- 05/15/08 16:45:06
(5 months ago)
- Author:
- zothos
- Message:
Fixed #1256
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r1153 |
r1154 |
|
| 5 | 5 | - GUI: |
|---|
| 6 | 6 | * Fixed #1255: please commit these patches for an better useful/readable database update files |
|---|
| | 7 | * Fixed #1256: admin's database update does not stop if there is an update failure |
|---|
| 7 | 8 | |
|---|
| 8 | 9 | 2008-05-15 Marc Pujol |
|---|
| r1153 |
r1154 |
|
| 76 | 76 | 'TR_UPDATE_MESSAGE' => tr('No database updates available'), |
|---|
| 77 | 77 | 'DATABASE_UPDATE_INFOS' => '' |
|---|
| 78 | | )); |
|---|
| 79 | | |
|---|
| | 78 | )); |
|---|
| 80 | 79 | $tpl->parse('DATABASE_UPDATE_MESSAGE', 'database_update_message'); |
|---|
| 81 | 80 | } |
|---|
| … | … | |
| 87 | 86 | } |
|---|
| 88 | 87 | |
|---|
| 89 | | |
|---|
| 90 | 88 | $tpl->parse('PAGE', 'page'); |
|---|
| 91 | 89 | $tpl->prnt(); |
|---|
| r1153 |
r1154 |
|
| 102 | 102 | } |
|---|
| 103 | 103 | |
|---|
| 104 | | // Prompt a error when a update fails |
|---|
| 105 | | if ($sql->HasFailedTrans()) { |
|---|
| 106 | | set_page_message(tr("Db update %s failed", $newRevision)); |
|---|
| 107 | | } |
|---|
| 108 | | |
|---|
| 109 | | $sql->CompleteTrans(); |
|---|
| 110 | | unset($queryArray); |
|---|
| | 104 | // Prompt a error and break while-loop when a update fails |
|---|
| | 105 | if ($sql->HasFailedTrans()) { |
|---|
| | 106 | set_page_message(tr("Db update %s failed", $newRevision));+ $sql->CompleteTrans(); |
|---|
| | 107 | |
|---|
| | 108 | unset($queryArray); |
|---|
| | 109 | break; |
|---|
| | 110 | } else { |
|---|
| | 111 | $sql->CompleteTrans(); |
|---|
| | 112 | unset($queryArray); |
|---|
| | 113 | } |
|---|
| 111 | 114 | } |
|---|
| 112 | 115 | } |
|---|
|
Download in other formats:
#########################################################################
# Site footer - Contents are automatically inserted after main Trac HTML
?>