* finish task #42159.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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';?>
|
||||
|
||||
Reference in New Issue
Block a user