forked from services/mlmmj-light-web-ecg
Added username to error template, Rearranged error messages
This commit is contained in:
@@ -7,6 +7,7 @@ unset($_SESSION["error_code"]);
|
||||
|
||||
$smarty->assign("headline", $headline);
|
||||
$smarty->assign("web_url", $web_url);
|
||||
$smarty->assign("username", $_SESSION["username"]);
|
||||
$smarty->assign("error_code", $error_code);
|
||||
$smarty->display("error.tpl");
|
||||
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div id="error">
|
||||
<strong>
|
||||
{if $error_code == 1}
|
||||
Domain can contain only english letters, dots, hyphens and digits.
|
||||
{elseif $error_code == 2}
|
||||
@@ -38,7 +39,8 @@
|
||||
{else}
|
||||
Unknown error.
|
||||
{/if}
|
||||
</strong>
|
||||
<p>Hit "Back" in your browser to return to where you came from. This should normally preserve your changes.</p>
|
||||
</div>
|
||||
<p>Hit "Back" in your browser to return to where you came from. This should normally preserve your changes.</p>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user