mirror of
https://gitlab.com/mojo42/Jirafeau.git
synced 2025-01-17 12:58:20 +01:00
fix header printing on error
Signed-off-by: Jerome Jutteau <mojo@couak.net>
This commit is contained in:
parent
7d88225983
commit
c41fa96e82
@ -24,7 +24,6 @@ require (JIRAFEAU_ROOT . 'lib/config.original.php');
|
||||
require (JIRAFEAU_ROOT . 'lib/settings.php');
|
||||
require (JIRAFEAU_ROOT . 'lib/functions.php');
|
||||
require (JIRAFEAU_ROOT . 'lib/lang.php');
|
||||
require (JIRAFEAU_ROOT . 'lib/template/header.php');
|
||||
|
||||
check_errors ($cfg);
|
||||
if (has_error ())
|
||||
@ -34,6 +33,8 @@ if (has_error ())
|
||||
exit;
|
||||
}
|
||||
|
||||
require (JIRAFEAU_ROOT . 'lib/template/header.php');
|
||||
|
||||
/* Check if user is allowed to upload. */
|
||||
if (!jirafeau_challenge_upload_ip ($cfg, get_ip_address($cfg)))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user