🐛 N°2072 Fix missing/empty error message when uploading too large attachment

This commit is contained in:
Molkobain
2019-03-13 09:51:49 +01:00
parent eb49dbbdc8
commit 914d19e7e4
7 changed files with 77 additions and 9 deletions

View File

@@ -38,6 +38,7 @@ Dict::Add('EN US', 'English', 'English', array(
'Portal:Button:Delete' => 'Delete',
'Portal:EnvironmentBanner:Title' => 'You are currently in <strong>%1$s</strong> mode',
'Portal:EnvironmentBanner:GoToProduction' => 'Go back to PRODUCTION mode',
'Error:HTTP:400' => 'Bad request',
'Error:HTTP:401' => 'Authentication',
'Error:HTTP:404' => 'Page not found',
'Error:HTTP:500' => 'Oops! An error has occured.',

View File

@@ -36,6 +36,7 @@ Dict::Add('FR FR', 'French', 'Français', array(
'Portal:Button:Delete' => 'Supprimer',
'Portal:EnvironmentBanner:Title' => 'Vous êtes dans le mode <strong>%1$s</strong>',
'Portal:EnvironmentBanner:GoToProduction' => 'Retourner au mode PRODUCTION',
'Error:HTTP:400' => 'Requête incorrecte',
'Error:HTTP:401' => 'Authentification',
'Error:HTTP:404' => 'Page non trouvée',
'Error:HTTP:500' => 'Oups ! Une erreur est survenue.',

View File

@@ -1383,7 +1383,7 @@ class ObjectController extends AbstractController
break;
default:
$oApp->abort(403);
$oApp->abort(403, Dict::S('Error:HTTP:400'));
break;
}