summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorBrion Vibber <brion@status.net>2010-11-08 17:36:02 -0800
committerBrion Vibber <brion@status.net>2010-11-08 17:36:02 -0800
commit694448e0aa81edb7b010f102ee9ee0e6961f6f7c (patch)
tree807173ab4543fdaebee351311e22ab02f4288365 /classes
parent6d7f02ff31c6c929223030b051541b1bf103f3a8 (diff)
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).
Diffstat (limited to 'classes')
-rw-r--r--classes/File_oembed.php6
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);