From 3a5814d8c104b77cea9ca42d38df004aa520df08 Mon Sep 17 00:00:00 2001 From: Stephen Palmstrom <stephen.palmstrom@missionassist.org.uk> Date: Tue, 8 Oct 2024 19:02:40 +0100 Subject: [PATCH] More error correction. --- core/lib/Drupal/Component/PhpStorage/FileStorage.php | 2 +- .../Component/PhpStorage/MTimeProtectedFastFileStorage.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/lib/Drupal/Component/PhpStorage/FileStorage.php b/core/lib/Drupal/Component/PhpStorage/FileStorage.php index 7d67253bb9f9..12fe77356186 100644 --- a/core/lib/Drupal/Component/PhpStorage/FileStorage.php +++ b/core/lib/Drupal/Component/PhpStorage/FileStorage.php @@ -94,7 +94,7 @@ protected function ensureDirectory($directory, $mode = 0777) { */ protected function createDirectory($directory, $mode = 0777) { // If running under Windows replace illegal characters with _. - $directory = \Drupal\Component\PhpStorage\MTimeProtectedFastFileStorage::sanitizeFilename($directory); + $directory = MTimeProtectedFastFileStorage::sanitizeFilename($directory); // If the directory exists already, there's nothing to do. if (is_dir($directory)) { return TRUE; diff --git a/core/lib/Drupal/Component/PhpStorage/MTimeProtectedFastFileStorage.php b/core/lib/Drupal/Component/PhpStorage/MTimeProtectedFastFileStorage.php index 08886ebc35ac..0746ced9966a 100644 --- a/core/lib/Drupal/Component/PhpStorage/MTimeProtectedFastFileStorage.php +++ b/core/lib/Drupal/Component/PhpStorage/MTimeProtectedFastFileStorage.php @@ -239,7 +239,7 @@ protected function tempnam($directory, $prefix) { * If running under Windows, replace illegal filename characters with _. * * @param string $filename - * The name of the file or directory we want to sanitise. + * The name of the file or directory we want to sanitize. * * @return string * -- GitLab