Changing Pagination Links

How can I modify 'function fn_generate_pagination()' in app/functions/fn.common.php so that the number of items shown are less. For example, if I have 9 products per page, I want the pagination to use this, but I also want the total # items to be presented like this:



PREV 1 2 3 4 5 NEXT n-x



I don't want it to be:



PREV 1 2 3 4 5 6 7 8 NEXT 2-9



I want to LIMIT the number of pages between the PREV & NEXT,



Thank you

Replace:



$deviation = ($area == 'A') ? 5 : 7;




with



$deviation = ($area == 'A') ? 5 : 4;

Thank you!

Welcome!