summaryrefslogtreecommitdiff
path: root/modules/gallery/controllers/login.php
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2010-07-29 09:22:32 -0700
committerTim Almdal <tnalmdal@shaw.ca>2010-07-29 09:22:32 -0700
commit21e3e86885b9f1b430a98553810327ac573412ca (patch)
treef04ec9fd962f92639f838a2b160936386c7ee7bf /modules/gallery/controllers/login.php
parent8cd9c09729fc5ccafa1b74b6d3f00ef5d3476d9e (diff)
Resend the entire dialog content (including the wrapping view) instead of just the form.
Diffstat (limited to 'modules/gallery/controllers/login.php')
-rw-r--r--modules/gallery/controllers/login.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/gallery/controllers/login.php b/modules/gallery/controllers/login.php
index 3454a245..d7ab399f 100644
--- a/modules/gallery/controllers/login.php
+++ b/modules/gallery/controllers/login.php
@@ -32,7 +32,9 @@ class Login_Controller extends Controller {
if ($valid) {
json::reply(array("result" => "success"));
} else {
- json::reply(array("result" => "error", "form" => (string) $form));
+ $view = new View("login_ajax.html");
+ $view->form = $form;
+ json::reply(array("result" => "error", "form" => (string) $view));
}
}