summaryrefslogtreecommitdiff
path: root/classes/File_oembed.php
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-03-10 13:39:42 -0800
committerBrion Vibber <brion@pobox.com>2010-03-10 15:13:16 -0800
commitf02cb7c71800e6a4426b92ce04c4b8f89006b10a (patch)
tree7adba74d00c50265a1113e09ae2020293758dbf0 /classes/File_oembed.php
parent4741683298ac02e14d7380ab20f20fd8a73775e2 (diff)
Fix for attachment "h bug": posting a shortened link to an oembed-able resource that has been previously used in the system would incorrectly save "h" as the item's type and title.
Diffstat (limited to 'classes/File_oembed.php')
-rw-r--r--classes/File_oembed.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/classes/File_oembed.php b/classes/File_oembed.php
index 11f160718..f59eaf24c 100644
--- a/classes/File_oembed.php
+++ b/classes/File_oembed.php
@@ -81,7 +81,13 @@ class File_oembed extends Memcached_DataObject
}
}
- function saveNew($data, $file_id) {
+ /**
+ * Save embedding info for a new file.
+ *
+ * @param array $data lookup data as from File_redirection::where
+ * @param int $file_id
+ */
+ function saveNew(array $data, $file_id) {
$file_oembed = new File_oembed;
$file_oembed->file_id = $file_id;
$file_oembed->version = $data->version;