diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-06-09 17:17:27 -0700 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-06-09 17:17:27 -0700 |
commit | e7a3b6fa55d4eda9140b122bc50681b979229da3 (patch) | |
tree | 2a7ded0d28388b8cc55bd0079912e1103c504e73 /modules | |
parent | 70546cdbdac81b811f678c029eab389dc9924bdf (diff) |
Created not_authorized.html.php which is a prettier login screen if the root
album is not publicly browsable.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/gallery/controllers/albums.php | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/modules/gallery/controllers/albums.php b/modules/gallery/controllers/albums.php index 0fd89f05..9b837442 100644 --- a/modules/gallery/controllers/albums.php +++ b/modules/gallery/controllers/albums.php @@ -26,14 +26,8 @@ class Albums_Controller extends Items_Controller { $page_size = module::get_var("gallery", "page_size", 9); if (!access::can("view", $album)) { if ($album->id == 1) { - $template = new Theme_View("page.html", "album"); - $template->set_global("page_size", $page_size); - $template->set_global("item", $album); - $template->set_global("children", array()); - $template->set_global("children_count", 0); - $template->set_global("parents", $album->parents()); - $template->unauthorized = true; - $template->content = new View("album.html"); + $template = new Theme_View("not_authorized.html", "album"); + $template->content = new View("login_page.html"); print $template; return; } else { |