Update post.php

Removed the debug error_log() command and the placeholders for now.
This commit is contained in:
Kashire 2017-05-24 19:26:23 -05:00 committed by GitHub
parent 39f0138231
commit b95f745c77

View File

@ -1023,7 +1023,6 @@ if (isset($_POST['delete'])) {
$file['height'] = $size[1];
}
else if ($file['extension'] == "txt" && $config['txt_file_thumbnail']){
error_log("MADE IT!",0);
$path = $file['thumb'];
$error = shell_exec_error( 'convert -thumbnail x300 xc:white -font "FreeMono" -pointsize 12 -fill black -annotate +15+15 ' .
@ -1041,12 +1040,6 @@ if (isset($_POST['delete'])) {
$file['width'] = $size[0];
$file['height'] = $size[1];
}
else if ($file['extension'] == "epub" && $config['epub_file_thumbnail']){
// PLACEHOLDER
}
else if ($file['extension'] == "djvu" && $config['djvu_file_thumbnail']){
// PLACEHOLDER
}
else {
// not an image
//copy($config['file_thumb'], $post['thumb']);