mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-25 10:49:58 +03:00
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
2 changed files with 3 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue