[fix] preview image in admin page
This commit is contained in:
parent
5d4edab2a4
commit
840de1ac0e
1 changed files with 5 additions and 5 deletions
|
@ -161,7 +161,7 @@ echo '<div class="hMenu">
|
|||
</div>
|
||||
<div id="log">';
|
||||
if (isset($ui['ac']) && $ui['ac'] === 'delete') {
|
||||
if($ui['delThumb']){
|
||||
if ($ui['delThumb']) {
|
||||
delAndRegen($ui['delThumb'], $size);
|
||||
}
|
||||
if (isset($ui['deleteUrl']) && testValidUrl($ui['deleteUrl']) !== true) {
|
||||
|
@ -226,9 +226,9 @@ if (isset($ui['log']) && ($ui['log'] === 'suspect' || $ui['log'] === 'retry' ||
|
|||
if (isset($ui['keep']) && (int)$ui['keep'] === 1) {
|
||||
keepThisThumb($ui['hash'], $ui['log']);
|
||||
}
|
||||
if (isset($ui['mGen']) && (int)$ui['mGen'] === 1)
|
||||
if (isset($ui['mGen']) && (int)$ui['mGen'] === 1) {
|
||||
$success = manualGen($ui['hash'], $ui['log']);
|
||||
$success['base64'] = 'data:image/png;base64,'.base64_encode(file_get_contents($success['filePath']));
|
||||
}
|
||||
}
|
||||
$logs = parseFailLog($ui['log']);
|
||||
if (!empty($logs)) {
|
||||
|
|
Loading…
Reference in a new issue