From eba5cdff2012180278e55ba47522ab7c13f9ecae Mon Sep 17 00:00:00 2001 From: Leon Stringer Date: Fri, 17 Nov 2023 14:36:22 +0000 Subject: [PATCH] MDL-80157 file: Exception message spelling --- lib/filestorage/file_storage.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/filestorage/file_storage.php b/lib/filestorage/file_storage.php index 6ac970571281a..5f2555f81874c 100644 --- a/lib/filestorage/file_storage.php +++ b/lib/filestorage/file_storage.php @@ -1247,7 +1247,7 @@ public function create_file_from_url($filerecord, $url, array $options = null, $ $tmpfile = tempnam($this->tempdir, 'newfromurl'); $content = download_file_content($url, $headers, $postdata, $fullresponse, $timeout, $connecttimeout, $skipcertverify, $tmpfile, $calctimeout); if ($content === false) { - throw new file_exception('storedfileproblem', 'Can not fetch file form URL'); + throw new file_exception('storedfileproblem', 'Cannot fetch file from URL'); } try { $newfile = $this->create_file_from_pathname($filerecord, $tmpfile); @@ -1261,7 +1261,7 @@ public function create_file_from_url($filerecord, $url, array $options = null, $ } else { $content = download_file_content($url, $headers, $postdata, $fullresponse, $timeout, $connecttimeout, $skipcertverify, NULL, $calctimeout); if ($content === false) { - throw new file_exception('storedfileproblem', 'Can not fetch file form URL'); + throw new file_exception('storedfileproblem', 'Cannot fetch file from URL'); } return $this->create_file_from_string($filerecord, $content); }