diff --git a/ext/private_image/info.php b/ext/private_image/info.php index 65ca5279..c46a8864 100644 --- a/ext/private_image/info.php +++ b/ext/private_image/info.php @@ -5,7 +5,7 @@ class PrivateImageInfo extends ExtensionInfo public const KEY = "private_image"; public $key = self::KEY; - public $name = "Private Image"; + public $name = "Private Post"; public $authors = ["Matthew Barbour"=>"matthew@darkholme.net"]; public $license = self::LICENSE_WTFPL; public $description = "Allows users to mark images as private, which prevents other users from seeing them."; diff --git a/ext/private_image/main.php b/ext/private_image/main.php index 5865aaa5..e0a5ec91 100644 --- a/ext/private_image/main.php +++ b/ext/private_image/main.php @@ -49,11 +49,11 @@ class PrivateImage extends Extension $image_id = isset($_POST['image_id']) ? $_POST['image_id'] : null; } if (empty($image_id)) { - throw new SCoreException("Can not make image private: No valid Image ID given."); + throw new SCoreException("Can not make image private: No valid Post ID given."); } $image = Image::by_id($image_id); if ($image==null) { - throw new SCoreException("Image not found."); + throw new SCoreException("Post not found."); } if ($image->owner_id!=$user->can(Permissions::SET_OTHERS_PRIVATE_IMAGES)) { throw new SCoreException("Cannot set another user's image to private."); @@ -71,11 +71,11 @@ class PrivateImage extends Extension $image_id = isset($_POST['image_id']) ? $_POST['image_id'] : null; } if (empty($image_id)) { - throw new SCoreException("Can not make image public: No valid Image ID given."); + throw new SCoreException("Can not make image public: No valid Post ID given."); } $image = Image::by_id($image_id); if ($image==null) { - throw new SCoreException("Image not found."); + throw new SCoreException("Post not found."); } if ($image->owner_id!=$user->can(Permissions::SET_OTHERS_PRIVATE_IMAGES)) { throw new SCoreException("Cannot set another user's image to private."); @@ -182,7 +182,7 @@ class PrivateImage extends Extension { if ($event->key===HelpPages::SEARCH) { $block = new Block(); - $block->header = "Private Images"; + $block->header = "Private Posts"; $block->body = $this->theme->get_help_html(); $event->add_block($block); } diff --git a/ext/private_image/theme.php b/ext/private_image/theme.php index ebf5fd1b..263503ca 100644 --- a/ext/private_image/theme.php +++ b/ext/private_image/theme.php @@ -27,14 +27,14 @@ class PrivateImageTheme extends Themelet public function get_help_html() { - return '

Search for images that are private/public.

+ return '

Search for posts that are private/public.

private:yes
-

Returns images that are private, restricted to yourself if you are not an admin.

+

Returns posts that are private, restricted to yourself if you are not an admin.

private:no
-

Returns images that are public.

+

Returns posts that are public.

'; }