From 2ea454d2b930f22c3f727ed6de3a56dd1c101190 Mon Sep 17 00:00:00 2001 From: Tijn Kuyper Date: Wed, 2 Oct 2019 12:20:31 +0200 Subject: [PATCH] Closes #718 - Add confirmation dialog when deleting forum topic or post --- e107_plugins/forum/forum_viewforum.php | 2 +- e107_plugins/forum/shortcodes/batch/view_shortcodes.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/e107_plugins/forum/forum_viewforum.php b/e107_plugins/forum/forum_viewforum.php index d96a57925..02f13ec78 100644 --- a/e107_plugins/forum/forum_viewforum.php +++ b/e107_plugins/forum/forum_viewforum.php @@ -515,7 +515,7 @@ ); - $text .= "
  • " . LAN_DELETE . " " . $tp->toGlyph('trash') . "
  • "; + $text .= "
  • " . LAN_DELETE . " " . $tp->toGlyph('trash') . "
  • "; $text .= "
  • " . $lan[$stickUnstick] . " " . $icon[$stickUnstick] . "
  • "; $text .= "
  • " . $lan[$lockUnlock] . " " . $icon[$lockUnlock] . "
  • "; diff --git a/e107_plugins/forum/shortcodes/batch/view_shortcodes.php b/e107_plugins/forum/shortcodes/batch/view_shortcodes.php index cf0c8d2a3..3b08f5178 100644 --- a/e107_plugins/forum/shortcodes/batch/view_shortcodes.php +++ b/e107_plugins/forum/shortcodes/batch/view_shortcodes.php @@ -885,7 +885,7 @@ * AND if this post is the last post in the thread */ if($this->thread->threadInfo['thread_active'] && empty($this->postInfo['thread_start']) ) { - $text .= "
  • " . LAN_DELETE . " " . $tp->toGlyph('fa-trash') . "
  • "; + $text .= "
  • " . LAN_DELETE . " " . $tp->toGlyph('fa-trash') . "
  • "; } } @@ -919,7 +919,7 @@ // if(!$this->forum->threadDetermineInitialPost($this->postInfo['post_id'])) if(empty($this->postInfo['thread_start'])) { - $text .= "
  • " . LAN_DELETE . " " . $tp->toGlyph('fa-trash') . "
  • "; + $text .= "
  • " . LAN_DELETE . " " . $tp->toGlyph('fa-trash') . "
  • "; } if($type == 'thread')