Skip to content

Commit

Permalink
Fix undefined key deleteConfirm (#257)
Browse files Browse the repository at this point in the history
  • Loading branch information
rabauss authored Mar 15, 2022
1 parent 7d02bc4 commit a93be69
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dca/tl_nc_gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
'label' => &$GLOBALS['TL_LANG']['tl_nc_gateway']['delete'],
'href' => 'act=delete',
'icon' => 'delete.gif',
'attributes' => 'onclick="if(!confirm(\'' . $GLOBALS['TL_LANG']['MSC']['deleteConfirm'] . '\'))return false;Backend.getScrollOffset()"'
'attributes' => 'onclick="if(!confirm(\'' . ($GLOBALS['TL_LANG']['MSC']['deleteConfirm'] ?? null) . '\'))return false;Backend.getScrollOffset()"'
),
'show' => array
(
Expand Down
2 changes: 1 addition & 1 deletion dca/tl_nc_language.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
'label' => &$GLOBALS['TL_LANG']['tl_nc_language']['delete'],
'href' => 'act=delete',
'icon' => 'delete.gif',
'attributes' => 'onclick="if(!confirm(\'' . $GLOBALS['TL_LANG']['MSC']['deleteConfirm'] . '\'))return false;Backend.getScrollOffset()"'
'attributes' => 'onclick="if(!confirm(\'' . ($GLOBALS['TL_LANG']['MSC']['deleteConfirm'] ?? null) . '\'))return false;Backend.getScrollOffset()"'
),
'show' => array
(
Expand Down
2 changes: 1 addition & 1 deletion dca/tl_nc_message.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
'label' => &$GLOBALS['TL_LANG']['tl_nc_message']['delete'],
'href' => 'act=delete',
'icon' => 'delete.gif',
'attributes' => 'onclick="if(!confirm(\'' . $GLOBALS['TL_LANG']['MSC']['deleteConfirm'] . '\'))return false;Backend.getScrollOffset()"'
'attributes' => 'onclick="if(!confirm(\'' . ($GLOBALS['TL_LANG']['MSC']['deleteConfirm'] ?? null) . '\'))return false;Backend.getScrollOffset()"'
),
'toggle' => array
(
Expand Down
2 changes: 1 addition & 1 deletion dca/tl_nc_notification.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
'label' => &$GLOBALS['TL_LANG']['tl_nc_notification']['delete'],
'href' => 'act=delete',
'icon' => 'delete.gif',
'attributes' => 'onclick="if(!confirm(\'' . $GLOBALS['TL_LANG']['MSC']['deleteConfirm'] . '\'))return false;Backend.getScrollOffset()"'
'attributes' => 'onclick="if(!confirm(\'' . ($GLOBALS['TL_LANG']['MSC']['deleteConfirm'] ?? null) . '\'))return false;Backend.getScrollOffset()"'
),
'show' => array
(
Expand Down
2 changes: 1 addition & 1 deletion dca/tl_nc_queue.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
'label' => &$GLOBALS['TL_LANG']['tl_nc_queue']['delete'],
'href' => 'act=delete',
'icon' => 'delete.gif',
'attributes' => 'onclick="if(!confirm(\'' . $GLOBALS['TL_LANG']['MSC']['deleteConfirm'] . '\'))return false;Backend.getScrollOffset()"',
'attributes' => 'onclick="if(!confirm(\'' . ($GLOBALS['TL_LANG']['MSC']['deleteConfirm'] ?? null) . '\'))return false;Backend.getScrollOffset()"',
'button_callback' => array('NotificationCenter\tl_nc_queue', 'deleteButton')
),
// @todo: maybe format the json encoded tokens for better usability?
Expand Down

0 comments on commit a93be69

Please sign in to comment.