summaryrefslogtreecommitdiff
path: root/core/controllers/maintenance.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-03-16 04:33:45 +0000
committerBharat Mediratta <bharat@menalto.com>2009-03-16 04:33:45 +0000
commit736d74d05f70be5b72e44eafe2cc8efae52b0af7 (patch)
tree31cda57354967ecb717026f3f631daaa54801aec /core/controllers/maintenance.php
parentcbc7c870fa8b54c2c320fedaf02b5b6010c55277 (diff)
Clean up the login, maintenance login and required-top-level-login code.
We now have two clear and separate login approaches: login/ajax login/html Choose the one that's appropriate. Totally simplified the maintenance page to be separate from the theme and dead simple, and use login/html approach there. Totally simplified the top level login (login_page.html.php) to just be a login page, not the rest of the chrome on the page and use the login/ajax approach there. Don't use access::required in albums and then catch the exception, instead use access::can and check the return code. Improve the text for maintenance mode.
Diffstat (limited to 'core/controllers/maintenance.php')
-rw-r--r--core/controllers/maintenance.php10
1 files changed, 2 insertions, 8 deletions
diff --git a/core/controllers/maintenance.php b/core/controllers/maintenance.php
index 908e90b5..32295a45 100644
--- a/core/controllers/maintenance.php
+++ b/core/controllers/maintenance.php
@@ -19,12 +19,6 @@
*/
class Maintenance_Controller extends Controller {
function index() {
- $album = ORM::factory("item", 1);
- $v = new Theme_View("maintenance.html", "reset");
- $v->title = t("%title Unavailable", array("title" => $album->title));
- $v->content = t("%title is currently unavailable as it is undergoing maintenance",
- array("title" => $album->title));
-
- print $v;
- }
+ print new View("maintenance.html");
+ }
} \ No newline at end of file