Vergleich admin/modules/forum/attachments.php - 1.6.10 - 1.6.13

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 735Zeile 735

switch($mybb->input['sortby'])
{


switch($mybb->input['sortby'])
{

				case "lastactive":

				case "filesize":

					$sort_field = "a.filesize";
break;
case "downloads":

					$sort_field = "a.filesize";
break;
case "downloads":

Zeile 752Zeile 752
					$mybb->input['sortby'] = "filename";
}


					$mybb->input['sortby'] = "filename";
}


			if($mybb->input['sortorder'] != "desc")

			if($mybb->input['order'] != "desc")

			{

			{

				$mybb->input['sortorder'] = "asc";

				$mybb->input['order'] = "asc";

			}

$page->add_breadcrumb_item($lang->results);

			}

$page->add_breadcrumb_item($lang->results);

Zeile 781Zeile 781
				LEFT JOIN ".TABLE_PREFIX."threads t ON (t.tid=p.tid)
LEFT JOIN ".TABLE_PREFIX."users u ON (u.uid=a.uid)
WHERE {$search_sql}

				LEFT JOIN ".TABLE_PREFIX."threads t ON (t.tid=p.tid)
LEFT JOIN ".TABLE_PREFIX."users u ON (u.uid=a.uid)
WHERE {$search_sql}

				ORDER BY {$sort_field} {$mybb->input['sortorder']}

				ORDER BY {$sort_field} {$mybb->input['order']}

				LIMIT {$start}, {$mybb->input['perpage']}
");
while($attachment = $db->fetch_array($query))

				LIMIT {$start}, {$mybb->input['perpage']}
");
while($attachment = $db->fetch_array($query))

Zeile 793Zeile 793
			if($num_results > $mybb->input['perpage'])
{
$pagination_url = "index.php?module=forum-attachments&results=1";

			if($num_results > $mybb->input['perpage'])
{
$pagination_url = "index.php?module=forum-attachments&results=1";

				$pagination_vars = array('filename', 'mimetype', 'username', 'fid', 'downloads', 'downloads_dir', 'dateuploaded', 'dateuploaded_dir', 'filesize', 'filesize_dir');

				$pagination_vars = array('perpage', 'sortby', 'order', 'filename', 'mimetype', 'username', 'fid', 'downloads', 'downloads_dir', 'dateuploaded', 'dateuploaded_dir', 'filesize', 'filesize_dir');

				foreach($pagination_vars as $var)
{
if($mybb->input[$var])

				foreach($pagination_vars as $var)
{
if($mybb->input[$var])