From 7d1f1b45963cc09b13a9a326ff11e904b95470e2 Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Fri, 2 Aug 2002 12:50:24 +0000 Subject: Sort fixes git-svn-id: file:///svn/phpbb/trunk@2809 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/admin/admin_viewlogs.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'phpBB/admin') diff --git a/phpBB/admin/admin_viewlogs.php b/phpBB/admin/admin_viewlogs.php index a5da66092c..bdd48ac1cc 100644 --- a/phpBB/admin/admin_viewlogs.php +++ b/phpBB/admin/admin_viewlogs.php @@ -81,9 +81,9 @@ if ( ( isset($HTTP_POST_VARS['delmarked']) || isset($HTTP_POST_VARS['delall']) ) // // // -if ( isset($HTTP_POST_VARS['sort']) ) +if ( isset($HTTP_POST_VARS['sort']) || $start ) { - if ( !empty($HTTP_POST_VARS['sort_days']) ) + if ( !empty($HTTP_POST_VARS['sort_days']) || !empty($HTTP_GET_VARS['sort_days']) ) { $sort_days = ( !empty($HTTP_POST_VARS['sort_days']) ) ? intval($HTTP_POST_VARS['sort_days']) : intval($HTTP_GET_VARS['sort_days']); $where_sql = time() - ( $sort_days * 86400 ); @@ -93,7 +93,6 @@ if ( isset($HTTP_POST_VARS['sort']) ) $where_sql = 0; } - $start = 0; $sort_key = ( isset($HTTP_POST_VARS['sort_key']) ) ? $HTTP_POST_VARS['sort_key'] : $HTTP_GET_VARS['sort_key']; $sort_dir = ( isset($HTTP_POST_VARS['sort_dir']) ) ? $HTTP_POST_VARS['sort_dir'] : $HTTP_GET_VARS['sort_dir']; } @@ -143,7 +142,8 @@ $row = $db->sql_fetchrow($result); $db->sql_freeresult($result); $total_entries = $row['total_entries']; -$pagination = generate_pagination("admin_viewlogs.$phpEx$SID&mode=$mode&order=$sort_order", $total_entries, $board_config['topics_per_page'], $start). ' '; +$pagination = generate_pagination("admin_viewlogs.$phpEx$SID&mode=$mode&sort_days=$sort_days&sort_key=$sort_key&sort_dir=$sort_dir +", $total_entries, $board_config['topics_per_page'], $start). ' '; page_header($lang['Admin_logs']); -- cgit v1.2.1