art-web r561 - in branches/art-hub: lib views



Author: thos
Date: Sun Nov 23 00:36:23 2008
New Revision: 561
URL: http://svn.gnome.org/viewvc/art-web?rev=561&view=rev

Log:
Fix bugs in the pagination


Modified:
   branches/art-hub/lib/pagination.php
   branches/art-hub/views/backgrounds.php
   branches/art-hub/views/themes.php

Modified: branches/art-hub/lib/pagination.php
==============================================================================
--- branches/art-hub/lib/pagination.php	(original)
+++ branches/art-hub/lib/pagination.php	Sun Nov 23 00:36:23 2008
@@ -35,7 +35,7 @@
   {
     $context = 8;
     
-    $num_pages = $this->total / $this->limit;
+    $num_pages = ceil ($this->total / $this->limit);
 
     if ($context > $num_pages)
       $context = $num_pages;

Modified: branches/art-hub/views/backgrounds.php
==============================================================================
--- branches/art-hub/views/backgrounds.php	(original)
+++ branches/art-hub/views/backgrounds.php	Sun Nov 23 00:36:23 2008
@@ -56,7 +56,7 @@
 if (!is_numeric ($cur_page))
   $cur_page = 1;
 
-$p = new Paginator ($total_backgrounds, 10, $cur_page * 10);
+$p = new Paginator ($total_backgrounds, 12, $cur_page * 12);
 
 if ($category == "gnome")
   $d_category = "GNOME";

Modified: branches/art-hub/views/themes.php
==============================================================================
--- branches/art-hub/views/themes.php	(original)
+++ branches/art-hub/views/themes.php	Sun Nov 23 00:36:23 2008
@@ -57,7 +57,7 @@
 if (!is_numeric ($cur_page))
   $cur_page = 1;
 
-$p = new Paginator ($total_themes, 10, $cur_page * 10);
+$p = new Paginator ($total_themes, 12, $cur_page * 12);
 
 $display_cat = array (
   "gtk2" => "Controls",



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]