From fef607cd64e0bf5a469e3127d4e14a2e8b549a58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Wed, 23 Nov 2005 16:45:13 +0000 Subject: [PATCH] Move error message on top of page. --- ChangeLog | 1 + libraries/auth/cookie.auth.lib.php | 12 +++++++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7d5394c4a..93e97315b 100755 --- a/ChangeLog +++ b/ChangeLog @@ -45,6 +45,7 @@ $Source$ * libraries/common.lib.php: Do not complain if config file is not present, as we can still work in this case (bug #1364647). * lang/*: Added missing $strInvalidServerHostname. + * libraries/auth/cookie.auth.lib.php: Move error message on top of page. 2005-11-22 Sebastian Mendel * added test/theme.php: for testing themes diff --git a/libraries/auth/cookie.auth.lib.php b/libraries/auth/cookie.auth.lib.php index 95724f6a1..64d5c4307 100644 --- a/libraries/auth/cookie.auth.lib.php +++ b/libraries/auth/cookie.auth.lib.php @@ -140,6 +140,13 @@ echo sprintf( $GLOBALS['strWelcome'], ?>

' . $GLOBALS['strError'] . '

' . "\n"; + echo $conn_error . '' . "\n"; + } + // Displays the languages form if (empty($cfg['Lang'])) { echo "\n"; @@ -161,11 +168,6 @@ echo sprintf( $GLOBALS['strWelcome'], . ''; exit(); } - - if ( !empty($conn_error)) { - echo '

' . $GLOBALS['strError'] . '

' . "\n"; - echo $conn_error . '
' . "\n"; - } ?>