summaryrefslogtreecommitdiff
path: root/modules/gallery/controllers/albums.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-09-10 21:31:50 -0700
committerBharat Mediratta <bharat@menalto.com>2009-09-10 21:31:50 -0700
commit7fddd2aced1821f977323fc75f2954f2b240ae37 (patch)
treeff44b50c5badfaa3618b3b3273a54e368c646ea1 /modules/gallery/controllers/albums.php
parent3d60e39a7b46e61316780405616a47bf2000eb42 (diff)
Use abs_url() inside url::redirect() calls so that we don't just wind
up tacking onto the base url.
Diffstat (limited to 'modules/gallery/controllers/albums.php')
-rw-r--r--modules/gallery/controllers/albums.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/gallery/controllers/albums.php b/modules/gallery/controllers/albums.php
index 8455d95c..183c26d0 100644
--- a/modules/gallery/controllers/albums.php
+++ b/modules/gallery/controllers/albums.php
@@ -42,9 +42,9 @@ class Albums_Controller extends Items_Controller {
$index = $album->get_position($show);
$page = ceil($index / $page_size);
if ($page == 1) {
- url::redirect($album->url());
+ url::redirect($album->abs_url());
} else {
- url::redirect($album->url("page=$page"));
+ url::redirect($album->abs_url("page=$page"));
}
}
@@ -55,9 +55,9 @@ class Albums_Controller extends Items_Controller {
// Make sure that the page references a valid offset
if ($page < 1) {
- url::redirect($album->url());
+ url::redirect($album->abs_url());
} else if ($page > $max_pages) {
- url::redirect($album->url("page=$max_pages"));
+ url::redirect($album->abs_url("page=$max_pages"));
}
$template = new Theme_View("page.html", "album");