Merge branch 'image2post'

This commit is contained in:
Shish
2020-10-27 22:42:47 +00:00
112 changed files with 377 additions and 376 deletions

View File

@ -33,7 +33,7 @@ class Approval extends Extension
$image_id = isset($_POST['image_id']) ? $_POST['image_id'] : null;
}
if (empty($image_id)) {
throw new SCoreException("Can not approve image: No valid Image ID given.");
throw new SCoreException("Can not approve post: No valid Post ID given.");
}
self::approve_image($image_id);
@ -48,7 +48,7 @@ class Approval extends Extension
$image_id = isset($_POST['image_id']) ? $_POST['image_id'] : null;
}
if (empty($image_id)) {
throw new SCoreException("Can not disapprove image: No valid Image ID given.");
throw new SCoreException("Can not disapprove image: No valid Post ID given.");
}
self::disapprove_image($image_id);