summaryrefslogtreecommitdiff
path: root/src/web/_views/_template/toast.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/web/_views/_template/toast.php (renamed from src/web/_views/template/toast.php)18
1 files changed, 7 insertions, 11 deletions
diff --git a/src/web/_views/template/toast.php b/src/web/_views/_template/toast.php
index 0a6a82f..902955c 100644
--- a/src/web/_views/template/toast.php
+++ b/src/web/_views/_template/toast.php
@@ -3,21 +3,17 @@
<?php
$params = array();
- if ($detail) {
- array_push($params, lang('api_column_' . $detail));
- }
+ if ($detail)
+ $params[] = lang('api_column_' . $detail);
- if ($hint) {
- array_push($params, $hint);
- }
+ if ($hint)
+ $params[] = $hint;
- $lang_msg = lang($msg, FALSE, sub: $params);
-
- if(!$lang_msg) {
+ $lang_msg = lang($msg, '', sub: $params);
+ if(!$lang_msg)
$lang_msg = $msg;
- } else {
+ else
$lang_msg = ucfirst($lang_msg);
- }
?>
<div class="toast <?=$type?>">