i edit 'Number of Content Items to show per/page in Page List' in userpreference(editprefs.php) to '10'.now the problem is when i have more than 10 content in my content list,all of them will be shown in just one page.but pagination function in other pages work!
the code in listcontent.php is like this:
Code: Select all
if ($limit != 0 && $counter > $limit)
{
$thelist .= "<p>".pagination($page, $counter, $limit)."</p>";
}
but count($pagelist) shows the number of contents + 1.(i mean when i have 12 content in my list,it returns 13).
so i replace
Code: Select all
if ($limit != 0 && $counter > $limit)
{
$thelist .= "<p>".pagination($page, $counter, $limit)."</p>";
}
Code: Select all
if ($limit != 0 && count($pagelist) > $limit)
{
$thelist .= "<p>".pagination($page, count($pagelist), $limit)."</p>";
}
