Skip to content
Snippets Groups Projects
Commit 3a5814d8 authored by Stephen Palmstrom's avatar Stephen Palmstrom
Browse files

More error correction.

parent 12e3a847
No related branches found
No related tags found
1 merge request!9787Resolve issue 3479427 - bootstrap barrio issue under Windows
......@@ -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;
......
......@@ -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
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment