Update post.php
Removed the debug error_log() command and the placeholders for now.
This commit is contained in:
parent
39f0138231
commit
b95f745c77
7
post.php
7
post.php
@ -1023,7 +1023,6 @@ if (isset($_POST['delete'])) {
|
|||||||
$file['height'] = $size[1];
|
$file['height'] = $size[1];
|
||||||
}
|
}
|
||||||
else if ($file['extension'] == "txt" && $config['txt_file_thumbnail']){
|
else if ($file['extension'] == "txt" && $config['txt_file_thumbnail']){
|
||||||
error_log("MADE IT!",0);
|
|
||||||
$path = $file['thumb'];
|
$path = $file['thumb'];
|
||||||
|
|
||||||
$error = shell_exec_error( 'convert -thumbnail x300 xc:white -font "FreeMono" -pointsize 12 -fill black -annotate +15+15 ' .
|
$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['width'] = $size[0];
|
||||||
$file['height'] = $size[1];
|
$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 {
|
else {
|
||||||
// not an image
|
// not an image
|
||||||
//copy($config['file_thumb'], $post['thumb']);
|
//copy($config['file_thumb'], $post['thumb']);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user