diff --git a/bl-kernel/ajax/profile-picture-upload.php b/bl-kernel/ajax/profile-picture-upload.php index 806a4199..b282cf71 100644 --- a/bl-kernel/ajax/profile-picture-upload.php +++ b/bl-kernel/ajax/profile-picture-upload.php @@ -34,6 +34,9 @@ if (Text::stringContains($username, DS, false)) { // Tmp filename $tmpFilename = $username.'.'.$fileExtension; +// Final filename +$filename = $username.'.png'; + // Move from temporary directory to uploads folder rename($_FILES['profilePictureInputFile']['tmp_name'], PATH_TMP.$tmpFilename); @@ -45,9 +48,6 @@ $image->saveImage(PATH_UPLOADS_PROFILES.$filename, PROFILE_IMG_QUALITY, false, t // Remove the tmp file unlink(PATH_TMP.$tmpFilename); -// Final filename -$filename = $username.'.png'; - // Permissions chmod(PATH_UPLOADS_PROFILES.$filename, 0644); diff --git a/bl-languages/fr_FR.json b/bl-languages/fr_FR.json old mode 100755 new mode 100644 index 787e3717..9f7cc40d --- a/bl-languages/fr_FR.json +++ b/bl-languages/fr_FR.json @@ -3,7 +3,7 @@ "native": "Français (France)", "english-name": "French", "locale": "fr, fr_FR", - "last-update": "2018-10-24", + "last-update": "2019-06-05", "authors": [ "Frédéric K. http:\/\/flatboard.free.fr", "Clickwork https:\/\/clickwork.ch", @@ -365,27 +365,27 @@ "select-cover-image": "Sélectionnez une image d’accroche.", "this-plugin-depends-on-the-following-plugins": "Ce plugin dépend des plugins suivants.", "no-pages-found": "Aucune page trouvée", - "system-updated": "System updated", - "security": "Security", - "remove-cover-image": "Remove cover image", - "width": "Width", - "height": "Height", - "quality": "Quality", - "thumbnails": "Thumbnails", - "thumbnail": "Thumbnail", - "thumbnail-width-in-pixels": "Thumbnail width in pixels (px).", - "thumbnail-height-in-pixels": "Thumbnail height in pixels (px).", - "thumbnail-quality-in-percentage": "Thumbnail quality in percentage (%).", - "maximum-load-file-size-allowed:": "Maximum load file size allowed:", - "file-type-is-not-supported": "File type is not supported. Allowed types:", - "page-content": "Page content", - "markdown-parser": "Markdown parser", - "site-logo": "Site logo", - "search": "Search", - "search-plugins": "Search plugins", - "enabled-plugins": "Enabled plugins", - "disabled-plugins": "Disabled plugins", - "remove-logo": "Remove logo", - "preview": "Preview", + "system-updated": "Système mis à jour", + "security": "Sécurité", + "remove-cover-image": "Supprimer l’image d’accroche", + "width": "Largeur", + "height": "Hauteur", + "quality": "Qualité", + "thumbnails": "Miniatures", + "thumbnail": "Miniature", + "thumbnail-width-in-pixels": "Largeur de la miniature en pixels (px).", + "thumbnail-height-in-pixels": "Hauteur de la miniature en pixels (px).", + "thumbnail-quality-in-percentage": "Qualité des miniatures en pourcentage (%).", + "maximum-load-file-size-allowed:": "Taille maximale des fichiers autorisée :", + "file-type-is-not-supported": "Le type de fichier n’est pas supporté. Liste des extensions autorisées :", + "page-content": "Contenu de la page", + "markdown-parser": "Parseur au format Markdown", + "site-logo": "Logo du site", + "search": "Rechercher", + "search-plugins": "Recherche dans les plugins", + "enabled-plugins": "Plugins activés", + "disabled-plugins": "Plugins désactivés", + "remove-logo": "Supprimer le logo", + "preview": "Aperçu", "author-can-write-and-edit-their-own-content": "Author: Can write and edit their own content. Editor: Can write and edit the content of others." } \ No newline at end of file