Permalink
Browse files

Cahange intval with faster (int) operator

  • Loading branch information...
1 parent f21c719 commit 4f4e7b23860a0948ac49612d468db6cb0332fb9d @acidvertigo acidvertigo committed May 25, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 catalog/includes/classes/split_page_results.php
@@ -83,10 +83,10 @@ function display_links($max_page_links, $parameters = '') {
if ($this->current_page_number > 1) $display_links_string .= '<a href="' . tep_href_link(basename($PHP_SELF), $parameters . $this->page_name . '=' . ($this->current_page_number - 1), $request_type) . '" class="pageResults" title=" ' . PREVNEXT_TITLE_PREVIOUS_PAGE . ' "><u>' . PREVNEXT_BUTTON_PREV . '</u></a>&nbsp;&nbsp;';
// check if number_of_pages > $max_page_links
- $cur_window_num = intval($this->current_page_number / $max_page_links);
+ $cur_window_num = (int)($this->current_page_number / $max_page_links);
if ($this->current_page_number % $max_page_links) $cur_window_num++;
- $max_window_num = intval($this->number_of_pages / $max_page_links);
+ $max_window_num = (int)($this->number_of_pages / $max_page_links);
if ($this->number_of_pages % $max_page_links) $max_window_num++;
// previous window of pages

0 comments on commit 4f4e7b2

Please sign in to comment.