mirror of
https://github.com/kleeja-official/kleeja.git
synced 2025-12-16 04:59:42 +01:00
fixing the Pagination links
when the guest visiting fileuser and he want to move to the second page , the link going to " example.com/kleeja/ucp.php?go=fileuser&page=1&page=2 " without defining the id of userfile and u can see also the $_GET['page'] is defined 2 time
This commit is contained in:
4
ucp.php
4
ucp.php
@@ -363,7 +363,7 @@ switch (g('go'))
|
|||||||
$linkgoto = $config['siteurl'] . (
|
$linkgoto = $config['siteurl'] . (
|
||||||
$config['mod_writer']
|
$config['mod_writer']
|
||||||
? 'fileuser-' . $user_id . ($currentPage > 1 && $currentPage <= $total_pages ? '-' . $currentPage : '') . '.html'
|
? 'fileuser-' . $user_id . ($currentPage > 1 && $currentPage <= $total_pages ? '-' . $currentPage : '') . '.html'
|
||||||
: 'ucp.php?go=fileuser' . ($currentPage > 1 && $currentPage <= $total_pages ? '&page=' . $currentPage : '')
|
: 'ucp.php?go=fileuser' . ( ig('id') ? ( g('id' , 'int') == $usrcp->id() ? '' : '&id=' . g('id') ) : null )
|
||||||
);
|
);
|
||||||
|
|
||||||
$page_nums = $Pager->print_nums(str_replace('.html', '', $linkgoto));
|
$page_nums = $Pager->print_nums(str_replace('.html', '', $linkgoto));
|
||||||
@@ -931,4 +931,4 @@ if($show_style)
|
|||||||
Saaheader($titlee, $extra);
|
Saaheader($titlee, $extra);
|
||||||
echo $tpl->display($stylee);
|
echo $tpl->display($stylee);
|
||||||
Saafooter();
|
Saafooter();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user