diff options
| author | Tim Almdal <tnalmdal@shaw.ca> | 2010-01-22 18:12:30 -0800 | 
|---|---|---|
| committer | Tim Almdal <tnalmdal@shaw.ca> | 2010-01-22 18:12:30 -0800 | 
| commit | ece403877fa0a8bf385a1c52d7be99b1e2b002f4 (patch) | |
| tree | f594d4fe09e5d37790377358624fb3751aa77c91 /modules/gallery/controllers/login.php | |
| parent | ff5ccf0fb34a19306e4177a9a2f2c4c6f503cb1a (diff) | |
If the userid/password combination, render the full page instead of just printing the form. Fixes ticket #980.
Diffstat (limited to 'modules/gallery/controllers/login.php')
| -rw-r--r-- | modules/gallery/controllers/login.php | 6 | 
1 files changed, 5 insertions, 1 deletions
| diff --git a/modules/gallery/controllers/login.php b/modules/gallery/controllers/login.php index 75ee6b9c..cfccaf17 100644 --- a/modules/gallery/controllers/login.php +++ b/modules/gallery/controllers/login.php @@ -50,7 +50,11 @@ class Login_Controller extends Controller {      if ($valid) {        url::redirect(item::root()->abs_url());      } else { -      print $form; +      $view = new Theme_View("page.html", "other", "login"); +      $view->page_title = t("Log in to Gallery"); +      $view->content = new View("login_ajax.html"); +      $view->content->form = $form; +      print $view;      }    } | 
