views_php-2484407-10.patch 817 B

123456789101112131415161718192021222324
  1. diff --git a/plugins/views/views_php_plugin_pager.inc b/plugins/views/views_php_plugin_pager.inc
  2. index bb7d2d9..5ffa123 100644
  3. --- a/plugins/views/views_php_plugin_pager.inc
  4. +++ b/plugins/views/views_php_plugin_pager.inc
  5. @@ -47,19 +47,7 @@
  6. }
  7. }
  8. }
  9. - $this->update_wrapped_pager();
  10. $this->php_unwrap();
  11. - }
  12. -
  13. - protected function update_wrapped_pager() {
  14. - $this->wrapped->total_items = count($this->wrapped->view->result);
  15. - $this->wrapped->update_page_info();
  16. -
  17. - $item_per_page = $this->wrapped->get_items_per_page();
  18. - if ($item_per_page > 0) {
  19. - $offset = $this->wrapped->get_current_page() * $item_per_page + $this->wrapped->get_offset();
  20. - $this->wrapped->view->result = array_slice($this->wrapped->view->result, $offset, $item_per_page);
  21. - }
  22. }
  23. /**