Browse Source

Pagination

Victor De la Rocha 17 years ago
parent
commit
457c67ee03
1 changed files with 5 additions and 2 deletions
  1. 5 2
      index.php

+ 5 - 2
index.php View File

177
                         $p->Items($tumble->getPostsNumber());
177
                         $p->Items($tumble->getPostsNumber());
178
                         $p->limit($limit);
178
                         $p->limit($limit);
179
                         
179
                         
180
-                        $p->urlFriendly('[...]');
181
-						$p->target($conf->urlGelato.($conf->urlFriendly?"/page/":"/index.php?page=")."[...]");
180
+						if($conf->urlFriendly){
181
+								$p->urlFriendly('[...]');
182
+								$p->target($conf->urlGelato."/page/[...]");
183
+							}else
184
+								$p->target($conf->urlGelato);
182
                         
185
                         
183
                         $p->currentPage(isset($page_num) ? $page_num : 1);
186
                         $p->currentPage(isset($page_num) ? $page_num : 1);
184
                         $p->show();
187
                         $p->show();