Better error messages: for some reason, the strings weren't used to report the error?
authorkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 8 Sep 2002 13:37:02 +0000 (13:37 +0000)
committerkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 8 Sep 2002 13:37:02 +0000 (13:37 +0000)
Now they are. This eliminates a subset of the "You must be logged in.." error messages by
giving the admin a clue as to what's going wrong.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3614 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/redirect.php

index 31b73adf39d606864cbd9c1df5526ad9c1d1de9a..91addea8dc801ee87f716c4335e77b41b0fa9023 100644 (file)
@@ -88,7 +88,7 @@ if (!session_is_registered('user_is_logged_in')) {
         $errString = $errTitle . "<br>\n".
                      _("Contact your administrator for help.");
         include_once( '../functions/display_messages.php' );
         $errString = $errTitle . "<br>\n".
                      _("Contact your administrator for help.");
         include_once( '../functions/display_messages.php' );
-        logout_error( _("You must be logged in to access this page.") );            
+        logout_error( $errString, $errTitle );            
         exit;
     } else {
         $sqimap_capabilities = sqimap_capability($imapConnection);
         exit;
     } else {
         $sqimap_capabilities = sqimap_capability($imapConnection);