diff options
author | Brion Vibber <brion@pobox.com> | 2010-03-03 09:53:38 -0800 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-03-03 09:53:38 -0800 |
commit | 7313cd909479f771e960466d9194783c9a3158bb (patch) | |
tree | 318734efe06c9de904364f04cb76e1c54b75e269 /classes/File.php | |
parent | 49a872b56f82a3f1ba59f0751c11dfe7754393dd (diff) | |
parent | f3cea2430497e751bc7776fe3abf0603e2b55f8b (diff) |
Merge branch 'testing' of git@gitorious.org:statusnet/mainline
Conflicts:
plugins/OStatus/OStatusPlugin.php
Diffstat (limited to 'classes/File.php')
-rw-r--r-- | classes/File.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/classes/File.php b/classes/File.php index 91b12d2e2..1b8ef1b3e 100644 --- a/classes/File.php +++ b/classes/File.php @@ -279,10 +279,19 @@ class File extends Memcached_DataObject if($oembed->modified) $enclosure->modified=$oembed->modified; unset($oembed->size); } + } else { + return false; } } } return $enclosure; } + + // quick back-compat hack, since there's still code using this + function isEnclosure() + { + $enclosure = $this->getEnclosure(); + return !empty($enclosure); + } } |