[fix] preview image in admin page

This commit is contained in:
Knah Tsaeb 2015-07-10 13:55:10 +02:00
parent 5d4edab2a4
commit 840de1ac0e
1 changed files with 5 additions and 5 deletions

View File

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