art-web r524 - in branches/art-hub: controllers views
- From: thos svn gnome org
- To: svn-commits-list gnome org
- Subject: art-web r524 - in branches/art-hub: controllers views
- Date: Sun, 15 Jun 2008 22:04:53 +0000 (UTC)
Author: thos
Date: Sun Jun 15 22:04:53 2008
New Revision: 524
URL: http://svn.gnome.org/viewvc/art-web?rev=524&view=rev
Log:
* Correctly set the total number of pages
Modified:
branches/art-hub/controllers/backgrounds.php
branches/art-hub/views/backgrounds.php
Modified: branches/art-hub/controllers/backgrounds.php
==============================================================================
--- branches/art-hub/controllers/backgrounds.php (original)
+++ branches/art-hub/controllers/backgrounds.php Sun Jun 15 22:04:53 2008
@@ -22,6 +22,8 @@
else
$view_data = null;
+$total_backgrounds = $bg->get_total ($category);
+
/* load view */
require ("views/backgrounds.php");
Modified: branches/art-hub/views/backgrounds.php
==============================================================================
--- branches/art-hub/views/backgrounds.php (original)
+++ branches/art-hub/views/backgrounds.php Sun Jun 15 22:04:53 2008
@@ -24,7 +24,7 @@
exit;
}
-$p = new Paginator (400, 10, $_GET['page'] * 10);
+$p = new Paginator ($total_backgrounds, 10, $_GET['page'] * 10);
if ($category == "gnome")
$d_category = "GNOME";
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]