[ticket/331] Remove EPV errors in code
This commit is contained in:
@@ -241,7 +241,7 @@ function generate_portal_pagination($base_url, $num_items, $per_page, $start_ite
|
|||||||
|
|
||||||
$template->assign_vars(array(
|
$template->assign_vars(array(
|
||||||
$tpl_prefix . 'BASE_URL' => $base_url,
|
$tpl_prefix . 'BASE_URL' => $base_url,
|
||||||
'A_' . $tpl_prefix . 'BASE_URL' => addslashes($base_url),
|
'A_' . $tpl_prefix . 'BASE_URL' => is_string($base_url) ? $base_url : '',
|
||||||
$tpl_prefix . 'PER_PAGE' => $per_page,
|
$tpl_prefix . 'PER_PAGE' => $per_page,
|
||||||
|
|
||||||
$tpl_prefix . 'PREVIOUS_PAGE' => ($on_page == 1) ? '' : $base_url . "{$url_delim}" . $pagination_type . '=' . (($on_page - 2) * $per_page) . $anker,
|
$tpl_prefix . 'PREVIOUS_PAGE' => ($on_page == 1) ? '' : $base_url . "{$url_delim}" . $pagination_type . '=' . (($on_page - 2) * $per_page) . $anker,
|
||||||
@@ -357,16 +357,9 @@ function get_portal_tracking_info($fetch_news)
|
|||||||
if (!isset($tracking_topics) || !sizeof($tracking_topics))
|
if (!isset($tracking_topics) || !sizeof($tracking_topics))
|
||||||
{
|
{
|
||||||
if ($request->is_set($config['cookie_name'] . '_track', \phpbb\request\request_interface::COOKIE))
|
if ($request->is_set($config['cookie_name'] . '_track', \phpbb\request\request_interface::COOKIE))
|
||||||
{
|
|
||||||
if (STRIP)
|
|
||||||
{
|
|
||||||
$tracking_topics = stripslashes($request->variable($config['cookie_name'] . '_track', '', true, \phpbb\request\request_interface::COOKIE));
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
$tracking_topics = $request->variable($config['cookie_name'] . '_track', '', true, \phpbb\request\request_interface::COOKIE);
|
$tracking_topics = $request->variable($config['cookie_name'] . '_track', '', true, \phpbb\request\request_interface::COOKIE);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$tracking_topics = '';
|
$tracking_topics = '';
|
||||||
|
|||||||
@@ -108,7 +108,7 @@ class stylechanger extends module_base
|
|||||||
$url = append_sid("{$this->phpbb_root_path}app.{$this->php_ext}/portal", 'style=' . $row['style_id']);
|
$url = append_sid("{$this->phpbb_root_path}app.{$this->php_ext}/portal", 'style=' . $row['style_id']);
|
||||||
}
|
}
|
||||||
++$style_count;
|
++$style_count;
|
||||||
$style_select .= '<option value="' . $url . '"' . ($row['style_id'] == $this->user->style['style_id'] ? ' selected="selected"' : '') . '>' . htmlspecialchars($row['style_name']) . '</option>';
|
$style_select .= '<option value="' . $url . '"' . ($row['style_id'] == $this->user->style['style_id'] ? ' selected="selected"' : '') . '>' . utf8_htmlspecialchars($row['style_name']) . '</option>';
|
||||||
}
|
}
|
||||||
$this->db->sql_freeresult($result);
|
$this->db->sql_freeresult($result);
|
||||||
if(strlen($style_select))
|
if(strlen($style_select))
|
||||||
|
|||||||
Reference in New Issue
Block a user