if (!is_moderator_by_tids($threadlist, 'canmanagethreads')) {
         error_no_permission();
     }
     foreach ($threadlist as $tid) {
         $tids[] = intval($tid);
     }
     // Make sure moderator has permission to move to the new forum
     $newperms = forum_permissions($moveto);
     if (($newperms['canview'] == 0 || !is_moderator($moveto, 'canmanagethreads')) && !is_moderator_by_tids($tids, 'canmovetononmodforum')) {
         error_no_permission();
     }
     $newforum = get_forum($moveto);
     if (!$newforum || $newforum['type'] != "f" || $newforum['type'] == "f" && $newforum['linkto'] != '') {
         error($lang->error_invalidforum);
     }
     $moderation->move_threads($tids, $moveto);
     log_moderator_action($modlogdata, $lang->multi_moved_threads);
     moderation_redirect(get_forum_link($moveto), $lang->redirect_inline_threadsmoved);
     break;
     // Delete posts - Inline moderation
 // Delete posts - Inline moderation
 case "multideleteposts":
     add_breadcrumb($lang->nav_multi_deleteposts);
     if ($mybb->input['inlinetype'] == 'search') {
         $posts = getids($mybb->input['searchid'], 'search');
     } else {
         $posts = getids($tid, 'thread');
     }
     if (count($posts) < 1) {
         error($lang->error_inline_nopostsselected);
     }