1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-16 20:28:28 +01:00

fix double caption when it failed

tablerender make additional caption and breadcrumb above the error message when the process failed. (email not recognized)
no problem if the caption, is simple .. but if we have styled caption it look weird.
maybe there are better solutions ?

thank you
This commit is contained in:
Indra 2017-08-04 16:45:16 +07:00 committed by GitHub
parent a832b8266c
commit ff6624386e

View File

@ -380,8 +380,9 @@ if (!empty($_POST['pwsubmit']))
{
//$text = LAN_213;
//$ns->tablerender(LAN_214, "<div style='text-align:center'>".$text."</div>");
e107::getMessage()->addError(LAN_213);
$ns->tablerender(LAN_214, e107::getMessage()->render());
//e107::getMessage()->addError(LAN_213);
//$ns->tablerender(LAN_214, e107::getMessage()->render());
fpw_error(LAN_213);
}
}
@ -424,4 +425,4 @@ $text = $tp->parseTemplate($FPW_TABLE, true, $sc);
$ns->tablerender($caption, $text);
require_once(FOOTERF);
?>
?>