relates #2345 remove array fix warning with error tpl
error introduced with new Standard pages, Errors messages in themes couldn't display du to extra array added
This commit is contained in:
parent
ee0d29a0e9
commit
122cbf7567
@ -40,7 +40,7 @@ if ( !empty($_GET['redirect']) )
|
||||
$redirect_to = urldecode($_GET['redirect']);
|
||||
if ( $conf['guest_access'] and !isset($_GET['hide_redirect_error']))
|
||||
{
|
||||
$page['errors']['login_page_error'][] = l10n('You are not authorized to access the requested page');
|
||||
$page['errors']['login_page_error'] = l10n('You are not authorized to access the requested page');
|
||||
}
|
||||
}
|
||||
|
||||
@ -48,7 +48,7 @@ if (isset($_POST['login']))
|
||||
{
|
||||
if (!isset($_COOKIE[session_name()]))
|
||||
{
|
||||
$page['errors']['login_page_error'][] = l10n('Cookies are blocked or not supported by your browser. You must enable cookies to connect.');
|
||||
$page['errors']['login_page_error'] = l10n('Cookies are blocked or not supported by your browser. You must enable cookies to connect.');
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -29,7 +29,7 @@ if (isset($_POST['submit']))
|
||||
if (!verify_ephemeral_key(@$_POST['key']))
|
||||
{
|
||||
set_status_header(403);
|
||||
$page['errors']['register_page_error'][] = l10n('Invalid/expired form key');
|
||||
$page['errors']['register_page_error'] = l10n('Invalid/expired form key');
|
||||
}
|
||||
|
||||
if(empty($_POST['password']))
|
||||
|
Loading…
x
Reference in New Issue
Block a user