]> WPIA git - gigi.git/blobdiff - src/club/wpia/gigi/output/template/Form.java
upd: get default variables into outputables for error messages
[gigi.git] / src / club / wpia / gigi / output / template / Form.java
index 1e94120158facaeb226e418353686348b37f5e48..6b895b7c9665d31872ffd517cacdc41a3289d1ff 100644 (file)
@@ -168,11 +168,11 @@ public abstract class Form implements Outputable {
     public static boolean printFormErrors(HttpServletRequest req, PrintWriter out) {
         Object o = req.getAttribute(SUBMIT_RESULT);
         if (o != null && (o instanceof PermamentFormException)) {
-            ((PermamentFormException) o).getCause().format(out, Page.getLanguage(req));
+            ((PermamentFormException) o).getCause().format(out, Page.getLanguage(req), Page.getDefaultVars(req));
             return false;
         }
         if (o != null && (o instanceof GigiApiException)) {
-            ((GigiApiException) o).format(out, Page.getLanguage(req));
+            ((GigiApiException) o).format(out, Page.getLanguage(req), Page.getDefaultVars(req));
             return true;
         }
         if (o != null && (o instanceof FormContinue)) {