From 4de6598440fb7bdc76a8c220181829a8096c391a Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Tue, 22 Feb 2011 17:52:26 +1100 Subject: Fix for page next/prev buttons in mod.php --- inc/functions.php | 31 +++++++++++++++++++++---------- 1 file changed, 21 insertions(+), 10 deletions(-) (limited to 'inc/functions.php') diff --git a/inc/functions.php b/inc/functions.php index dabdbb64..19491d76 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -499,22 +499,33 @@ // There is no previous page. $btn['prev'] = 'Previous'; } else { - $btn['prev'] = '
'; + $loc = ($mod ? '?/' . $board['uri'] . '/' : '') . + ($num == 1 ? + $config['file_index'] + : + sprintf($config['file_page'], $num) + ); + + $btn['prev'] = '
' . + ($mod ? + '' . + '' + :'') . + '
'; } if($num == count($pages) - 1) { // There is no next page. $btn['next'] = 'Next'; } else { - $btn['next'] = '
'; + $loc = ($mod ? '?/' . $board['uri'] . '/' : '') . sprintf($config['file_page'], $num + 2); + + $btn['next'] = '
' . + ($mod ? + '' . + '' + :'') . + '
'; } } } -- cgit v1.3