diff --git a/core/lib/Drupal/Component/PhpStorage/FileStorage.php b/core/lib/Drupal/Component/PhpStorage/FileStorage.php index 7d67253bb9f9c9ab8a8d49f63f7d996a6605da0b..12fe77356186c29eb94a900371dcd02e467924ef 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 08886ebc35acb1a7e30b6d7f609eb427f0e8aecb..0746ced9966af8fef7e33e6a4185ba7d7cc1a757 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 *