build_thumb_html can't be called statically

This commit is contained in:
Shish 2012-06-24 01:13:24 +01:00
parent a640de5283
commit 9ca07641d2
2 changed files with 5 additions and 1 deletions

View File

@ -49,7 +49,7 @@ class RSS_Images extends Extension {
$image_url = $image->get_image_link();
$posted = date(DATE_RSS, $image->posted_timestamp);
$content = html_escape(
"<p>" . Themelet::build_thumb_html($image) . "</p>" .
"<p>" . $this->theme->build_thumb_html($image) . "</p>" .
"<p>Uploaded by " . html_escape($owner->name) . "</p>"
);

4
ext/rss_images/theme.php Normal file
View File

@ -0,0 +1,4 @@
<?php
/* needed for access to build_thumb_html */
class RSS_ImagesTheme extends Themelet {}
?>