fix: [metatemplates:index] Pass all needed arguments

pull/89/head
Sami Mokaddem 2022-03-08 17:22:39 +01:00
parent 033792396c
commit 66572a788f
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ if (!empty($updateableTemplates['new'])) {
$alertHtml = sprintf(
'<strong>%s</strong> %s',
__('New meta-templates available!'),
__n('There is one new template on disk that can be loaded in the database', 'There are {0} new templates on disk that can be loaded in the database:', count($updateableTemplates['new']))
__n('There is one new template on disk that can be loaded in the database', 'There are {0} new templates on disk that can be loaded in the database:', count($updateableTemplates['new']), count($updateableTemplates['new']))
);
$alertList = [];
$alertList = Hash::extract($updateableTemplates['new'], '{s}.template');