summaryrefslogtreecommitdiff
path: root/classes/File_oembed.php
diff options
context:
space:
mode:
authorRobin Millette <millette@controlyourself.ca>2009-06-17 16:44:33 -0400
committerRobin Millette <millette@controlyourself.ca>2009-06-17 16:44:33 -0400
commit28d02ec8cdd0278c802c8fee30acddecca9ca01f (patch)
tree63a83ad1e293905478bddd2677be56454649925e /classes/File_oembed.php
parentfd6de17a4ace3eece968e2c7d319ee29340d2930 (diff)
Make oohembed endpoint configurable.
Diffstat (limited to 'classes/File_oembed.php')
-rw-r--r--classes/File_oembed.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/File_oembed.php b/classes/File_oembed.php
index f1b2cb13c..6bf972f8f 100644
--- a/classes/File_oembed.php
+++ b/classes/File_oembed.php
@@ -53,7 +53,7 @@ class File_oembed extends Memcached_DataObject
function _getOembed($url, $maxwidth = 500, $maxheight = 400, $format = 'json') {
- $cmd = 'http://oohembed.com/oohembed/?url=' . urlencode($url);
+ $cmd = common_config('oohembed', 'endpoint') . '?url=' . urlencode($url);
if (is_int($maxwidth)) $cmd .= "&maxwidth=$maxwidth";
if (is_int($maxheight)) $cmd .= "&maxheight=$maxheight";
if (is_string($format)) $cmd .= "&format=$format";