Merge branch 'image2post'
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user