Minor correction
clean_bdd.php
This commit is contained in:
@@ -68,9 +68,8 @@ if ($a > 0) {
|
||||
foreach($missing_thumbs as $img){
|
||||
$file = $img_path . $img;
|
||||
create_thumb($th_w, $th_h, $file);
|
||||
echo gettext('Thumb for ') . $img . gettext(' was successfully created!') . '<br>';
|
||||
echo '<h5>' . gettext('Thumb for ') . $img . gettext(' was successfully created!') . '</h5>';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -89,9 +88,9 @@ if ($b > 0) {
|
||||
foreach($extra_thumbs as $thumb){
|
||||
$file = $thumb_path . $thumb;
|
||||
if (unlink($file)) {
|
||||
echo $thumb . gettext(' was deleted successfully!') . '<br>';
|
||||
echo '<h5>' . $thumb . gettext(' was deleted successfully!') . '</h5>';
|
||||
} else {
|
||||
echo gettext('There was a error deleting the file ') . $thumb;
|
||||
echo '<h5 class="redtext">' . gettext('There was a error deleting the file ') . $thumb . '</h5>';
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -147,7 +146,7 @@ if ($c > 0) {
|
||||
$stmt->bindParam(':filename', $file);
|
||||
$result = $stmt->execute();
|
||||
if ($result) {
|
||||
echo $img . gettext(' has been deleted from database !') . "<br />";
|
||||
echo '<h5>' . $img . gettext(' has been deleted from database !') . "</h5>";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user