Commit e93a9766 authored by jonnybradley's avatar jonnybradley

[FIX] Remove incorrect use of Image class to get thumbnail size.

TODO: make info a preference
parent c0c028fe
......@@ -310,10 +310,7 @@ if (!function_exists('getimagesize_raw')) {
// Set styling defaults
$thumbdef = 84; //Thumbnail height max when none is set
if (!empty($imgdata['fileId'])) {
global $detected_lib;
include_once('lib/images/images.php');
$dummy = new Image();
$thumbdef = $dummy->thumb_max_size; // filegals thumbnails size is hard-coded in lib/images/abstract.php
$thumbdef = 120; // filegals thumbnails size is hard-coded in lib/images/abstract.php
}
$descdef = 'font-size:12px; line-height:1.5em;'; //default text style for description
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment