Skip to content

Commit

Permalink
correct spaces in image-deletion-messages
Browse files Browse the repository at this point in the history
  • Loading branch information
onli committed May 29, 2014
1 parent 6dd5b4a commit 91ffa16
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions include/functions_images.inc.php
Expand Up @@ -323,7 +323,7 @@ function serendipity_deleteImage($id) {
$file = serendipity_fetchImageFromDatabase($id);

if (!is_array($file)) {
$messages .= sprintf(FILE_NOT_FOUND . '<br />', $id);
$messages .= sprintf(FILE_NOT_FOUND . ' ', $id);
//return false;
} else {

Expand All @@ -345,9 +345,9 @@ function serendipity_deleteImage($id) {
if (!$file['hotlink']) {
if (file_exists($serendipity['serendipityPath'] . $serendipity['uploadPath'] . $dFile)) {
if (@unlink($serendipity['serendipityPath'] . $serendipity['uploadPath'] . $dFile)) {
$messages .= sprintf(DELETE_FILE . '<br />', $dFile);
$messages .= sprintf(DELETE_FILE . ' ', $dFile);
} else {
$messages .= sprintf(DELETE_FILE_FAIL . '<br />', $dFile);
$messages .= sprintf(DELETE_FILE_FAIL . ' ', $dFile);
}

serendipity_plugin_api::hook_event('backend_media_delete', $dThumb);
Expand All @@ -356,14 +356,14 @@ function serendipity_deleteImage($id) {
$dfThumb = $serendipity['serendipityPath'] . $serendipity['uploadPath'] . $dfnThumb;

if (@unlink($dfThumb)) {
$messages .= sprintf(DELETE_THUMBNAIL . '<br />', $dfnThumb);
$messages .= sprintf(DELETE_THUMBNAIL . ' ', $dfnThumb);
}
}
} else {
$messages .= sprintf(FILE_NOT_FOUND . '<br />', $dFile);
$messages .= sprintf(FILE_NOT_FOUND . ' ', $dFile);
}
} else {
$messages .= sprintf(DELETE_HOTLINK_FILE . '<br />', $file['name']);
$messages .= sprintf(DELETE_HOTLINK_FILE . ' ', $file['name']);
}

serendipity_db_query("DELETE FROM {$serendipity['dbPrefix']}images WHERE id = ". (int)$id);
Expand Down

0 comments on commit 91ffa16

Please sign in to comment.