Zeile 832 | Zeile 832 |
---|
{ unset($moved_threads[$thread['tid']]); }
|
{ unset($moved_threads[$thread['tid']]); }
|
| } }
if($mybb->settings['allowthreadratings'] != 0 && $foruminfo['allowtratings'] != 0 && $mybb->user['uid'] && !empty($threadcache) && $ratings == true) { // Check if we've rated threads on this page // Guests get the pleasure of not being ID'd, but will be checked when they try and rate $imp = implode(",", array_keys($threadcache)); $query = $db->simple_select("threadratings", "tid, uid", "tid IN ({$imp}) AND uid = '{$mybb->user['uid']}'");
while($rating = $db->fetch_array($query)) { $threadcache[$rating['tid']]['rated'] = 1;
|
} } }
// If user has moderation tools available, prepare the Select All feature
|
} } }
// If user has moderation tools available, prepare the Select All feature
|
$num_results = $db->num_rows($query); if(is_moderator($fid) && $num_results > 0)
| if(is_moderator($fid) && $threadcount > $perpage)
|
{
|
{
|
$lang->page_selected = $lang->sprintf($lang->page_selected, intval($num_results));
| $lang->page_selected = $lang->sprintf($lang->page_selected, count($threadcache));
|
$lang->select_all = $lang->sprintf($lang->select_all, intval($threadcount)); $lang->all_selected = $lang->sprintf($lang->all_selected, intval($threadcount)); eval("\$selectall = \"".$templates->get("forumdisplay_inlinemoderation_selectall")."\";");
| $lang->select_all = $lang->sprintf($lang->select_all, intval($threadcount)); $lang->all_selected = $lang->sprintf($lang->all_selected, intval($threadcount)); eval("\$selectall = \"".$templates->get("forumdisplay_inlinemoderation_selectall")."\";");
|