From 0edd859bf24876c8ddf5a9bbdf439d7aee88b4f6 Mon Sep 17 00:00:00 2001 From: Quetzal Date: Sat, 22 Aug 2020 05:46:38 +0000 Subject: [PATCH] include destination forum name for moves --- sections/forums/mod_thread.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sections/forums/mod_thread.php b/sections/forums/mod_thread.php index ea26ef6c5..f779c282e 100644 --- a/sections/forums/mod_thread.php +++ b/sections/forums/mod_thread.php @@ -68,7 +68,6 @@ if (isset($_POST['delete'])) { } else { // Permissions are handled inside forums.class.php $transitions = Forums::get_transitions(); - $Debug->log_var($transitions); if (!isset($transitions[$transId])) { error(0); } else { @@ -94,6 +93,7 @@ if (isset($_POST['delete'])) { // topic notes and notifications $notes = []; + $newName = $DB->scalar('SELECT Name FROM forums WHERE ID = ?', $newForumId); $oldUrl = "[url=" . site_url() . "forums.php?action=viewforum&forumid=$oldForumId]{$oldName}[/url]"; $newUrl = "[url=" . site_url() . "forums.php?action=viewforum&forumid=$newForumId]{$newName}[/url]"; switch ($action ?? null) {