From 1f1cd4e3ec999670e76efeda96c17450283b5291 Mon Sep 17 00:00:00 2001 From: Diego Najar Date: Fri, 10 May 2019 20:02:24 +0200 Subject: [PATCH] rename filename to keep clean --- bl-kernel/admin/views/settings.php | 2 +- bl-kernel/ajax/{remove-logo.php => logo-remove.php} | 9 ++++++++- bl-kernel/ajax/{upload-logo.php => logo-upload.php} | 0 ...ad-profile-picture.php => profile-picture-upload.php} | 0 bl-kernel/js/bludit-ajax.php | 2 +- 5 files changed, 10 insertions(+), 3 deletions(-) rename bl-kernel/ajax/{remove-logo.php => logo-remove.php} (68%) rename bl-kernel/ajax/{upload-logo.php => logo-upload.php} (100%) rename bl-kernel/ajax/{upload-profile-picture.php => profile-picture-upload.php} (100%) diff --git a/bl-kernel/admin/views/settings.php b/bl-kernel/admin/views/settings.php index 9b7f7561..64413f86 100644 --- a/bl-kernel/admin/views/settings.php +++ b/bl-kernel/admin/views/settings.php @@ -546,7 +546,7 @@ formData.append('tokenCSRF', tokenCSRF); formData.append('inputFile', $(this)[0].files[0]); $.ajax({ - url: HTML_PATH_ADMIN_ROOT+"ajax/upload-logo", + url: HTML_PATH_ADMIN_ROOT+"ajax/logo-upload", type: "POST", data: formData, cache: false, diff --git a/bl-kernel/ajax/remove-logo.php b/bl-kernel/ajax/logo-remove.php similarity index 68% rename from bl-kernel/ajax/remove-logo.php rename to bl-kernel/ajax/logo-remove.php index 0dbf582f..55f2b699 100644 --- a/bl-kernel/ajax/remove-logo.php +++ b/bl-kernel/ajax/logo-remove.php @@ -1,7 +1,14 @@ logo(false); if ($logoFilename) { Filesystem::rmfile(PATH_UPLOADS.$logoFilename); diff --git a/bl-kernel/ajax/upload-logo.php b/bl-kernel/ajax/logo-upload.php similarity index 100% rename from bl-kernel/ajax/upload-logo.php rename to bl-kernel/ajax/logo-upload.php diff --git a/bl-kernel/ajax/upload-profile-picture.php b/bl-kernel/ajax/profile-picture-upload.php similarity index 100% rename from bl-kernel/ajax/upload-profile-picture.php rename to bl-kernel/ajax/profile-picture-upload.php diff --git a/bl-kernel/js/bludit-ajax.php b/bl-kernel/js/bludit-ajax.php index 851e3c6b..90cef6e3 100644 --- a/bl-kernel/js/bludit-ajax.php +++ b/bl-kernel/js/bludit-ajax.php @@ -26,7 +26,7 @@ class bluditAjax { } static async removeLogo() { - let url = HTML_PATH_ADMIN_ROOT+"ajax/remove-logo" + let url = HTML_PATH_ADMIN_ROOT+"ajax/logo-remove" try { const response = await fetch(url, { credentials: 'same-origin',