1
0

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:
Matthias Mees
2015-02-03 18:46:47 +01:00
parent 02cf5a3f29
commit 4665bb6598
3 changed files with 18 additions and 18 deletions

View File

@ -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);