From 13ad9d3b6df8d49b10587a75839d265419202d78 Mon Sep 17 00:00:00 2001 From: Matthew Barbour Date: Mon, 26 Oct 2020 10:21:25 -0500 Subject: [PATCH] Image to Post - resize --- ext/resize/info.php | 2 +- ext/resize/main.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ext/resize/info.php b/ext/resize/info.php index b5d7057a..477d79ca 100644 --- a/ext/resize/info.php +++ b/ext/resize/info.php @@ -11,7 +11,7 @@ class ResizeImageInfo extends ExtensionInfo public const KEY = "resize"; public $key = self::KEY; - public $name = "Resize Image"; + public $name = "Resize Post"; public $authors = ["jgen"=>"jgen.tech@gmail.com"]; public $license = self::LICENSE_GPLV2; public $description = "This extension allows admins to resize images."; diff --git a/ext/resize/main.php b/ext/resize/main.php index 0b2a371b..de1a95e1 100644 --- a/ext/resize/main.php +++ b/ext/resize/main.php @@ -126,12 +126,12 @@ class ResizeImage extends Extension $image_id = isset($_POST['image_id']) ? int_escape($_POST['image_id']) : null; } if (empty($image_id)) { - throw new ImageResizeException("Can not resize Image: No valid Image ID given."); + throw new ImageResizeException("Can not resize Image: No valid Post ID given."); } $image = Image::by_id($image_id); if (is_null($image)) { - $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 image in the database has the ID #$image_id"); } else { /* Check if options were given to resize an image. */