summaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorThomas Mueller <thomas.mueller@tmit.eu>2013-02-04 15:04:26 +0100
committerThomas Mueller <thomas.mueller@tmit.eu>2013-02-04 15:04:26 +0100
commit6058c2f734ca2259aebab9cc83eb63c2718b2e4d (patch)
treee939096e410589289db1daf9df1cac8424e04c3f /settings
parent814369e0cdc9b1d44344f25cc95a7236d25426eb (diff)
downloadnextcloud-server-6058c2f734ca2259aebab9cc83eb63c2718b2e4d.tar.gz
nextcloud-server-6058c2f734ca2259aebab9cc83eb63c2718b2e4d.zip
we get best results regarding mime type detection if we use fileinfo - let's tell the admin about that
Diffstat (limited to 'settings')
-rwxr-xr-xsettings/admin.php1
-rw-r--r--settings/templates/admin.php15
2 files changed, 15 insertions, 1 deletions
diff --git a/settings/admin.php b/settings/admin.php
index 4d9685ab920..7cca7165153 100755
--- a/settings/admin.php
+++ b/settings/admin.php
@@ -31,6 +31,7 @@ $tmpl->assign('entriesremain', $entriesremain);
$tmpl->assign('htaccessworking', $htaccessworking);
$tmpl->assign('internetconnectionworking', OC_Util::isinternetconnectionworking());
$tmpl->assign('islocaleworking', OC_Util::issetlocaleworking());
+$tmpl->assign('has_fileinfo', OC_Util::fileInfoLoaded());
$tmpl->assign('backgroundjobs_mode', OC_Appconfig::getValue('core', 'backgroundjobs_mode', 'ajax'));
$tmpl->assign('shareAPIEnabled', OC_Appconfig::getValue('core', 'shareapi_enabled', 'yes'));
diff --git a/settings/templates/admin.php b/settings/templates/admin.php
index 0097489743f..9a9a691dcbf 100644
--- a/settings/templates/admin.php
+++ b/settings/templates/admin.php
@@ -22,7 +22,20 @@ if (!$_['htaccessworking']) {
<?php
}
-// is locale working ?
+// if module fileinfo available?
+if (!$_['has_fileinfo']) {
+ ?>
+<fieldset class="personalblock">
+ <legend><strong><?php echo $l->t('Module \'fileinfo\' missing');?></strong></legend>
+
+ <span class="connectionwarning">
+ <?php echo $l->t('The PHP module \'fileinfo\' is missing. We strongly recommend to enable this module to get best results with mime-type detection.'); ?>
+ </span>
+
+</fieldset>
+<?php
+}
+
if (!$_['islocaleworking']) {
?>
<fieldset class="personalblock">