diff options
Diffstat (limited to 'includes/file.inc')
-rw-r--r-- | includes/file.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/file.inc b/includes/file.inc index ac8549cfd..ecf2edb93 100644 --- a/includes/file.inc +++ b/includes/file.inc @@ -128,11 +128,11 @@ function file_create_path($destination = NULL) { } // Check if the destination is instead inside the Drupal temporary files // directory. - else if (file_check_location($destination, file_directory_temp())) { + elseif (file_check_location($destination, file_directory_temp())) { return $destination; } // Not found, try again with prefixed directory path. - else if (file_check_location($file_path . '/' . $destination, $file_path)) { + elseif (file_check_location($file_path . '/' . $destination, $file_path)) { return $file_path . '/' . $destination; } // File not found. |