From e3a13e6374e9663c3f28eecd63e452694d2e6341 Mon Sep 17 00:00:00 2001 From: Jephte Clain Date: Mon, 20 May 2024 20:27:16 +0400 Subject: [PATCH] modifs.mineures sans commentaires --- src/{ => file}/web/Upload.php | 5 ++--- src/web/uploads.php | 1 + 2 files changed, 3 insertions(+), 3 deletions(-) rename src/{ => file}/web/Upload.php (97%) diff --git a/src/web/Upload.php b/src/file/web/Upload.php similarity index 97% rename from src/web/Upload.php rename to src/file/web/Upload.php index def3a95..36f259e 100644 --- a/src/web/Upload.php +++ b/src/file/web/Upload.php @@ -1,5 +1,5 @@ "Ceci n'est pas un fichier téléversé", "nofile" => "Aucun fichier n'a été fourni", @@ -24,7 +23,7 @@ class Upload extends BaseArray { "unknown" => "Une erreur s'est produite pendant le transfert du fichier. Veuillez réessayer.", ]; - static function error(string $message) { + protected static function error(string $message) { return new ValueException(static::MESSAGES[$message]); } diff --git a/src/web/uploads.php b/src/web/uploads.php index 5267339..990be06 100644 --- a/src/web/uploads.php +++ b/src/web/uploads.php @@ -2,6 +2,7 @@ namespace nur\sery\web; use nur\sery\cl; +use nur\sery\file\web\Upload; class uploads { private static function parse_files(array &$files, string $pkey, array $values, string $lastkey): void {