Add attachments 'thumb_width' and 'thumb_height' settings for inline thumbs, defaulting to 100x75.
This is used as the max thumb width/height for oEmbed requests (replacing the old default of 500x400 which was more suitable for the lightbox).
This commit is contained in:
@@ -58,11 +58,11 @@ class File_oembed extends Memcached_DataObject
|
||||
return array(false, false, false);
|
||||
}
|
||||
|
||||
function _getOembed($url, $maxwidth = 500, $maxheight = 400) {
|
||||
function _getOembed($url) {
|
||||
require_once INSTALLDIR.'/extlib/Services/oEmbed.php';
|
||||
$parameters = array(
|
||||
'maxwidth'=>$maxwidth,
|
||||
'maxheight'=>$maxheight,
|
||||
'maxwidth' => common_config('attachments', 'thumb_width'),
|
||||
'maxheight' => common_config('attachments', 'thumb_height'),
|
||||
);
|
||||
try{
|
||||
$oEmbed = new Services_oEmbed($url);
|
||||
|
Reference in New Issue
Block a user