|
@@ 4082-4092 (lines=11) @@
|
| 4079 |
|
// Only tell deubbers how much time they wasted waiting for the upgrade because they don't have javascript. |
| 4080 |
|
if (!empty($upcontext['changes_complete'])) |
| 4081 |
|
{ |
| 4082 |
|
if ($is_debug) |
| 4083 |
|
{ |
| 4084 |
|
$active = time() - $upcontext['started']; |
| 4085 |
|
$hours = floor($active / 3600); |
| 4086 |
|
$minutes = intval(($active / 60) % 60); |
| 4087 |
|
$seconds = intval($active % 60); |
| 4088 |
|
|
| 4089 |
|
echo '', sprintf($txt['upgrade_success_time_db'], $seconds, $minutes, $hours), '<br>'; |
| 4090 |
|
} |
| 4091 |
|
else |
| 4092 |
|
echo '', $txt['upgrade_success'], '<br>'; |
| 4093 |
|
|
| 4094 |
|
echo ' |
| 4095 |
|
<p id="commess">', $txt['upgrade_db_complete'], '</p>'; |
|
@@ 4111-4132 (lines=22) @@
|
| 4108 |
|
</h3> |
| 4109 |
|
<p id="commess" style="display: ', !empty($upcontext['changes_complete']) || $upcontext['current_debug_item_num'] == $upcontext['debug_items'] ? 'inline' : 'none', ';">', $txt['upgrade_db_complete2'], '</p>'; |
| 4110 |
|
|
| 4111 |
|
if ($is_debug) |
| 4112 |
|
{ |
| 4113 |
|
// Let our debuggers know how much time was spent, but not wasted since JS handled refreshing the page! |
| 4114 |
|
if ($upcontext['current_debug_item_num'] == $upcontext['debug_items']) |
| 4115 |
|
{ |
| 4116 |
|
$active = time() - $upcontext['started']; |
| 4117 |
|
$hours = floor($active / 3600); |
| 4118 |
|
$minutes = intval(($active / 60) % 60); |
| 4119 |
|
$seconds = intval($active % 60); |
| 4120 |
|
|
| 4121 |
|
echo ' |
| 4122 |
|
<p id="upgradeCompleted">', sprintf($txt['upgrade_success_time_db'], $seconds, $minutes, $hours), '</p>'; |
| 4123 |
|
} |
| 4124 |
|
else |
| 4125 |
|
echo ' |
| 4126 |
|
<p id="upgradeCompleted"></p>'; |
| 4127 |
|
|
| 4128 |
|
echo ' |
| 4129 |
|
<div id="debug_section"> |
| 4130 |
|
<span id="debuginfo"></span> |
| 4131 |
|
</div>'; |
| 4132 |
|
} |
| 4133 |
|
} |
| 4134 |
|
|
| 4135 |
|
// Place for the XML error message. |