From b4169821ed40d09954fde7566b7c1ddebad4529c Mon Sep 17 00:00:00 2001 From: Matthew Barbour Date: Mon, 26 Oct 2020 10:27:26 -0500 Subject: [PATCH] Image to Post - transcode video --- ext/transcode_video/main.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/transcode_video/main.php b/ext/transcode_video/main.php index 57faef4b..9cd2a717 100644 --- a/ext/transcode_video/main.php +++ b/ext/transcode_video/main.php @@ -111,7 +111,7 @@ class TranscodeVideo extends Extension } $image_obj = Image::by_id($image_id); if (is_null($image_obj)) { - $this->theme->display_error(404, "Image not found", "No image in the database has the ID #$image_id"); + $this->theme->display_error(404, "Post not found", "No post in the database has the ID #$image_id"); } else { if (isset($_POST['transcode_format'])) { try { @@ -231,7 +231,7 @@ class TranscodeVideo extends Extension /* Move the new image into the main storage location */ $target = warehouse_path(Image::IMAGE_DIR, $new_image->hash); if (!@copy($tmp_filename, $target)) { - throw new VideoTranscodeException("Failed to copy new image file from temporary location ({$tmp_filename}) to archive ($target)"); + throw new VideoTranscodeException("Failed to copy new post file from temporary location ({$tmp_filename}) to archive ($target)"); } send_event(new ImageReplaceEvent($image->id, $new_image));