From 0ac280dfaac17f09e667af373371dc27fb3b2b25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Borja=20S=C3=A1nchez?= Date: Fri, 7 Oct 2022 12:15:37 +0200 Subject: [PATCH] Forum: Fix move post functionnality --- main/forum/forumfunction.inc.php | 2 +- main/forum/viewthread.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/main/forum/forumfunction.inc.php b/main/forum/forumfunction.inc.php index 79a48f6b20..06882738e4 100755 --- a/main/forum/forumfunction.inc.php +++ b/main/forum/forumfunction.inc.php @@ -4779,7 +4779,7 @@ function move_post_form() $values = $form->exportValues(); store_move_post($values); } else { - $form->display(); + return $form->returnForm(); } } diff --git a/main/forum/viewthread.php b/main/forum/viewthread.php index 22f2c7d7b9..09ba79ed19 100755 --- a/main/forum/viewthread.php +++ b/main/forum/viewthread.php @@ -113,7 +113,7 @@ switch ($action) { case 'move': if (isset($_GET['post'])) { $message = move_post_form(); - Display::addFlash(Display::return_message(get_lang($message))); + Display::addFlash(Display::return_message(get_lang($message), 'normal', false)); } header('Location: '.$currentUrl); exit;