Changeset 702 for trunk/forum/includes/mcp/mcp_logs.php
- Timestamp:
- Mar 31, 2010, 6:32:40 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/forum/includes/mcp/mcp_logs.php
r400 r702 3 3 * 4 4 * @package mcp 5 * @version $Id : mcp_logs.php 9029 2008-10-18 18:44:41Z toonarmy$5 * @version $Id$ 6 6 * @copyright (c) 2005 phpBB Group 7 7 * @license http://opensource.org/licenses/gpl-license.php GNU Public License … … 165 165 $sql_sort = $sort_by_sql[$sort_key] . ' ' . (($sort_dir == 'd') ? 'DESC' : 'ASC'); 166 166 167 $keywords = utf8_normalize_nfc(request_var('keywords', '', true)); 168 $keywords_param = !empty($keywords) ? '&keywords=' . urlencode(htmlspecialchars_decode($keywords)) : ''; 169 167 170 // Grab log data 168 171 $log_data = array(); 169 172 $log_count = 0; 170 view_log('mod', $log_data, $log_count, $config['topics_per_page'], $start, $forum_list, $topic_id, 0, $sql_where, $sql_sort );173 view_log('mod', $log_data, $log_count, $config['topics_per_page'], $start, $forum_list, $topic_id, 0, $sql_where, $sql_sort, $keywords); 171 174 172 175 $template->assign_vars(array( 173 176 'PAGE_NUMBER' => on_page($log_count, $config['topics_per_page'], $start), 174 177 'TOTAL' => ($log_count == 1) ? $user->lang['TOTAL_LOG'] : sprintf($user->lang['TOTAL_LOGS'], $log_count), 175 'PAGINATION' => generate_pagination($this->u_action . "&$u_sort_param ", $log_count, $config['topics_per_page'], $start),178 'PAGINATION' => generate_pagination($this->u_action . "&$u_sort_param$keywords_param", $log_count, $config['topics_per_page'], $start), 176 179 177 180 'L_TITLE' => $user->lang['MCP_LOGS'], … … 183 186 'S_SELECT_SORT_DAYS' => $s_limit_days, 184 187 'S_LOGS' => ($log_count > 0), 188 'S_KEYWORDS' => $keywords, 185 189 ) 186 190 ); … … 189 193 { 190 194 $data = array(); 191 195 192 196 $checks = array('viewtopic', 'viewforum'); 193 197 foreach ($checks as $check)
Note:
See TracChangeset
for help on using the changeset viewer.