summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2008-12-16 04:52:16 +0000
committerBharat Mediratta <bharat@menalto.com>2008-12-16 04:52:16 +0000
commit65a340efd8ab353ade7797893348b747adf82d98 (patch)
tree5212b5eb2fd0bc4ab4394b29a67fe131b536befe
parente82b08db20b9d052bc42ff5eb3bfedbc5aa519a5 (diff)
Fix a bug where we were using module::set_var() instead of module::get_var() resulting in
loading all photos in an album on a single page and updating the var on every page load.
-rw-r--r--core/controllers/albums.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/controllers/albums.php b/core/controllers/albums.php
index 48cbe410..7806b8d8 100644
--- a/core/controllers/albums.php
+++ b/core/controllers/albums.php
@@ -28,7 +28,7 @@ class Albums_Controller extends Items_Controller {
}
$theme_name = module::get_var("core", "active_theme", "default");
- $page_size = module::set_var("core", "page_size", 9);
+ $page_size = module::get_var("core", "page_size", 9);
$template = new Theme_View("page.html", "album", $theme_name);