add notification on admin page

This commit is contained in:
Morris Jobke 2014-06-03 08:01:39 +02:00
parent a4dd4cbb8f
commit 68a4fd44e6
2 changed files with 19 additions and 0 deletions

View File

@ -88,6 +88,11 @@ $tmpl->assign('forms', array());
foreach($forms as $form) { foreach($forms as $form) {
$tmpl->append('forms', $form); $tmpl->append('forms', $form);
} }
// TODO - replace by:
// > 5 users OR > 1000 files
$tmpl->assign('databaseOverload', true);
$tmpl->printPage(); $tmpl->printPage();
/** /**

View File

@ -98,6 +98,20 @@ if (!$_['isAnnotationsWorking']) {
<?php <?php
} }
// SQLite database performance issue
if ($_['databaseOverload']) {
?>
<div class="section">
<h2><?php p($l->t('Database Performance Warning'));?></h2>
<span class="securitywarning">
<?php p($l->t('SQLite will be used as database. For larger installations we recommend to change this.')); ?>
</span>
</div>
<?php
}
// if module fileinfo available? // if module fileinfo available?
if (!$_['has_fileinfo']) { if (!$_['has_fileinfo']) {
?> ?>