Rework messages emitted by upload/delete in media db
Due to a regression in how these messages are emitted, these now need to emit their msg markup in include/admin/images.inc.php or include/functions_images.inc.php to avoid nested msg containers. References #287
This commit is contained in:
@ -362,7 +362,7 @@ function serendipity_deleteImage($id) {
|
||||
$messages .= sprintf('<span class="msg_error"><span class="icon-attention-circled"></span> ' . FILE_NOT_FOUND . '</span>', $dFile);
|
||||
}
|
||||
} else {
|
||||
$messages .= sprintf(DELETE_HOTLINK_FILE, $file['name']);
|
||||
$messages .= sprintf('<span class="msg_hint"><span class="icon-help-circled"></span> ' . DELETE_HOTLINK_FILE . '</span>', $file['name']);
|
||||
}
|
||||
|
||||
serendipity_db_query("DELETE FROM {$serendipity['dbPrefix']}images WHERE id = ". (int)$id);
|
||||
|
Reference in New Issue
Block a user