add notification on admin page
This commit is contained in:
parent
a4dd4cbb8f
commit
68a4fd44e6
|
@ -88,6 +88,11 @@ $tmpl->assign('forms', array());
|
|||
foreach($forms as $form) {
|
||||
$tmpl->append('forms', $form);
|
||||
}
|
||||
|
||||
// TODO - replace by:
|
||||
// > 5 users OR > 1000 files
|
||||
$tmpl->assign('databaseOverload', true);
|
||||
|
||||
$tmpl->printPage();
|
||||
|
||||
/**
|
||||
|
|
|
@ -98,6 +98,20 @@ if (!$_['isAnnotationsWorking']) {
|
|||
<?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 (!$_['has_fileinfo']) {
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue