diff options
author | Brion Vibber <brion@status.net> | 2010-11-12 12:28:44 -0800 |
---|---|---|
committer | Brion Vibber <brion@status.net> | 2010-11-12 12:28:44 -0800 |
commit | 5d12ec0532fa9bcc71644186f6ff80f2b527703c (patch) | |
tree | 5a62c9af56efa0cdf47a06bf0fe26c8efbf8f7b7 /classes/File_oembed.php | |
parent | fdf3a23da7769586a818ca2219ec6bc1b46587de (diff) | |
parent | cb124fe831a3c77dfca89590ebb8d691685bb573 (diff) |
Merge branch 'oembed-thumbnails' into 0.9.x
Diffstat (limited to 'classes/File_oembed.php')
-rw-r--r-- | classes/File_oembed.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/classes/File_oembed.php b/classes/File_oembed.php index 4813d5dda..a5540ecfe 100644 --- a/classes/File_oembed.php +++ b/classes/File_oembed.php @@ -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); |