mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-02-28 15:10:54 +03:00
Updated
This commit is contained in:
parent
13aa1a384d
commit
1fae5aeb51
@ -441,7 +441,7 @@ if ($view == 'attachments')
|
||||
else
|
||||
{
|
||||
// we are called from search
|
||||
$attachments = search_attachments($order_by, $total_rows);
|
||||
$attachments = search_attachments($order_by, $total_rows, '<br /><br />' . sprintf($lang['CLICK_RETURN_ATTACH_CONFIG'], '<a href="javascript:history.back(-1)">', '</a>') . '<br /><br />' . sprintf($lang['CLICK_RETURN_ADMIN_INDEX'], '<a href="index.php?pane=right">', '</a>'));
|
||||
}
|
||||
|
||||
if (sizeof($attachments) > 0)
|
||||
|
@ -191,7 +191,7 @@ function get_formatted_dirsize()
|
||||
/*
|
||||
* Build SQL-Statement for the search feature
|
||||
*/
|
||||
function search_attachments($order_by, &$total_rows)
|
||||
function search_attachments($order_by, &$total_rows, $back_links = '')
|
||||
{
|
||||
global $lang;
|
||||
|
||||
@ -236,7 +236,7 @@ function search_attachments($order_by, &$total_rows)
|
||||
}
|
||||
else
|
||||
{
|
||||
bb_die($lang['NO_ATTACH_SEARCH_MATCH']);
|
||||
bb_die($lang['NO_ATTACH_SEARCH_MATCH'] . $back_links);
|
||||
}
|
||||
|
||||
$where_sql[] = ' (t.user_id_1 IN (' . $matching_userids . ')) ';
|
||||
@ -320,7 +320,7 @@ function search_attachments($order_by, &$total_rows)
|
||||
|
||||
if ($num_attach == 0)
|
||||
{
|
||||
bb_die($lang['NO_ATTACH_SEARCH_MATCH']);
|
||||
bb_die($lang['NO_ATTACH_SEARCH_MATCH'] . $back_links);
|
||||
}
|
||||
|
||||
if (!($result = DB()->sql_query($total_rows_sql)))
|
||||
|
Loading…
Reference in New Issue
Block a user