From 457c67ee03b2afefcf648a847ae9a97d795525c3 Mon Sep 17 00:00:00 2001 From: Victor De la Rocha Date: Thu, 13 Sep 2007 22:31:01 +0000 Subject: [PATCH] Pagination --- index.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index 7022d91..9e2b8aa 100644 --- a/index.php +++ b/index.php @@ -177,8 +177,11 @@ $p->Items($tumble->getPostsNumber()); $p->limit($limit); - $p->urlFriendly('[...]'); - $p->target($conf->urlGelato.($conf->urlFriendly?"/page/":"/index.php?page=")."[...]"); + if($conf->urlFriendly){ + $p->urlFriendly('[...]'); + $p->target($conf->urlGelato."/page/[...]"); + }else + $p->target($conf->urlGelato); $p->currentPage(isset($page_num) ? $page_num : 1); $p->show();