From e8421057017c2fc4c69bcc0609e9708492668428 Mon Sep 17 00:00:00 2001 From: Knah Tsaeb Date: Mon, 30 Sep 2013 11:37:20 +0200 Subject: [PATCH] [fix] bad path in preview img in admin page --- inc/admin.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/inc/admin.php b/inc/admin.php index 6daef1f..78ab1a2 100644 --- a/inc/admin.php +++ b/inc/admin.php @@ -212,7 +212,7 @@ if (isset($ui['log']) && ($ui['log'] === 'suspect' || $ui['log'] === 'retry' || if (isset($ui['cache']) && (int)$ui['cache'] === 1) { $success['filePath'] = pathForFile($ui['s'], $ui['hash']).'.png'; if (!file_exists($success['filePath'])) { - $success['filePath'] = 'data:image/png;base64,'.base64_encode(file_get_contents('bin/error.png')); + $success['base64'] = 'data:image/png;base64,'.base64_encode(file_get_contents('bin/error.png')); } } if (isset($ui['keep']) && (int)$ui['keep'] === 1) { @@ -225,7 +225,7 @@ if (isset($ui['log']) && ($ui['log'] === 'suspect' || $ui['log'] === 'retry' || if (!empty($logs)) { echo ''; } else { @@ -235,7 +235,7 @@ if (isset($ui['log']) && ($ui['log'] === 'suspect' || $ui['log'] === 'retry' || echo ''; if (!empty($success)) { echo '
'; - echo ''; + echo ''; echo '

'; echo 'Try with root domain / '; echo 'Keep this thumbshot';