* finish task #42159.

This commit is contained in:
王怡栋
2021-09-02 16:47:50 +08:00
parent 38e4833506
commit 003f03589c
3 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -53,7 +53,7 @@ EOT;
</div>
<div class='modal-body'>
<div class='form-group'>
<?php echo html::textArea('config', $configContent, "rows='15' class='form-control'");?>
<?php echo html::textarea('config', $configContent, "rows='15' class='form-control'");?>
</div>
<div class='help-block text-center'>
<?php
-2
View File
@@ -124,8 +124,6 @@ class upgrade extends control
$result = $this->upgrade->deleteFiles();
if($result)
{
$result[] = $this->lang->upgrade->afterDeleted;
$this->view->result = 'fail';
$this->view->errors = $result;
+4 -1
View File
@@ -18,9 +18,12 @@
<div class='modal-body'>
<?php if($result == 'fail'):?>
<div class='alert alert-danger mgb-10'><strong><?php echo $lang->upgrade->fail?></strong></div>
<pre><?php echo join('<br />', $errors);?></pre>
<?php echo html::textarea('errors', join("\n", $errors), "rows='10' class='form-control' readonly");?>
<?php endif;?>
</div>
<?php if($result == 'fail'):?>
<div class='modal-footer text-left'><?php echo $lang->upgrade->afterDeleted;?> <?php echo html::a('#', $this->lang->refresh, '', "class='btn btn-sm' onclick='location.reload()'");?></div>
<?php endif;?>
</div>
</div>
<?php include '../../common/view/footer.lite.html.php';?>