Skip to content

Commit

Permalink
Close #4559
Browse files Browse the repository at this point in the history
  • Loading branch information
aembler committed Nov 13, 2016
1 parent 35105c3 commit e3bb21b
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
1 change: 1 addition & 0 deletions concrete/controllers/install.php
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@ private function setRequiredItems()
$this->set('xmlTest', function_exists('xml_parse') && function_exists('simplexml_load_file'));
$this->set('fileWriteTest', $this->testFileWritePermissions());
$this->set('aspTagsTest', ini_get('asp_tags') == false);
$this->set('finfoTest', function_exists('finfo_open'));
$rf = new ReflectionObject($this);
$rp = $rf->getProperty('docCommentCanary');
$this->set('docCommentTest', (bool) $rp->getDocComment());
Expand Down
28 changes: 28 additions & 0 deletions concrete/views/frontend/install.php
Original file line number Diff line number Diff line change
Expand Up @@ -683,6 +683,34 @@ class="control-label"><?= t('Confirm Password') ?></label>
}
?></td>
</tr>
<tr>
<td>
<?php
if ($finfoTest) {
?>
<i class="fa fa-check"></i>
<?php
} else {
?>
<i class="fa fa-exclamation-circle"></i>
<?php
}
?>
</td>
<td style="width: 100%">
<?= t('Fileinfo Extension Enabled') ?>
</td>
<td>
<?php
if (!$finfoTest) {
?>
<i class="fa fa-question-circle launch-tooltip"
title="<?= t('You must enable the PHP Fileinfo extension.') ?>"></i>
<?php
}
?></td>
</tr>

</tbody>
</table>

Expand Down

0 comments on commit e3bb21b

Please sign in to comment.