minor fix in templates due to new Language class + other minor language fixes
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
@@ -27,7 +27,6 @@ const AREA = 'admin';
|
||||
require __DIR__ . '/lib/init.php';
|
||||
|
||||
use Froxlor\Database\Database;
|
||||
use Froxlor\FileDir;
|
||||
use Froxlor\FroxlorLogger;
|
||||
use Froxlor\Language;
|
||||
use Froxlor\PhpHelper;
|
||||
@@ -63,6 +62,8 @@ $file_templates = [
|
||||
'index_html'
|
||||
];
|
||||
|
||||
$languages = Language::getLanguages();
|
||||
|
||||
if ($action == '') {
|
||||
// email templates
|
||||
$log->logAction(FroxlorLogger::ADM_ACTION, LOG_NOTICE, "viewed admin_templates");
|
||||
@@ -165,6 +166,13 @@ if ($action == '') {
|
||||
'pagination' => []
|
||||
];
|
||||
|
||||
if ($mail_actions_links === false) {
|
||||
$mail_actions_links = [];
|
||||
}
|
||||
if ($file_actions_links === false) {
|
||||
$file_actions_links = [];
|
||||
}
|
||||
|
||||
UI::view('user/table-tpl.html.twig', [
|
||||
'maillisting' => Listing::formatFromArray($collection_mail, $mailtpl_list_data['mailtpl_list']),
|
||||
'filelisting' => Listing::formatFromArray($collection_file, $filetpl_list_data['filetpl_list']),
|
||||
|
||||
Reference in New Issue
Block a user