summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-03-17 05:40:21 +0000
committerBharat Mediratta <bharat@menalto.com>2009-03-17 05:40:21 +0000
commit522fe45787bb945edb2f2e8f737728e61a33d979 (patch)
treed12e688e298f9679074917019a19da5b44f21ed0
parentc6f03284c467f5de18d8233cfdf57b2bfcb92ce3 (diff)
filesize() dies if the file doesn't exist, which can happen in the
case that a gallery is slightly corrupt. In that case, just ignore the error.
-rw-r--r--modules/rss/views/feed.mrss.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/rss/views/feed.mrss.php b/modules/rss/views/feed.mrss.php
index 11b81bdd..c581e5e0 100644
--- a/modules/rss/views/feed.mrss.php
+++ b/modules/rss/views/feed.mrss.php
@@ -45,14 +45,14 @@
]]>
</content:encoded>
<media:thumbnail url="<?= $child->thumb_url(true) ?>"
- fileSize="<?= filesize($child->thumb_path()) ?>"
+ fileSize="<?= @filesize($child->thumb_path()) ?>"
height="<?= $child->thumb_height ?>"
width="<?= $child->thumb_width ?>"
/>
<media:group>
<? if ($child->type == "photo" || $child->type == "album"): ?>
<media:content url="<?= $child->resize_url(true) ?>"
- fileSize="<?= filesize($child->resize_path()) ?>"
+ fileSize="<?= @filesize($child->resize_path()) ?>"
type="<?= $child->mime_type ?>"
height="<?= $child->resize_height ?>"
width="<?= $child->resize_width ?>"
@@ -60,7 +60,7 @@
/>
<? if (access::can("view_full", $child)): ?>
<media:content url="<?= $child->file_url(true) ?>"
- fileSize="<?= filesize($child->file_path()) ?>"
+ fileSize="<?= @filesize($child->file_path()) ?>"
type="<?= $child->mime_type ?>"
height="<?= $child->height ?>"
width="<?= $child->width ?>"
@@ -68,7 +68,7 @@
<? endif ?>
<? else: ?>
<media:content url="<?= $child->file_url(true) ?>"
- fileSize="<?= filesize($child->file_path()) ?>"
+ fileSize="<?= @filesize($child->file_path()) ?>"
height="<?= $child->height ?>"
width="<?= $child->width ?>"
type="<?= $child->mime_type ?>"