diff --git a/fp-interface/sharedtpls/atom.tpl b/fp-interface/sharedtpls/atom.tpl
index 2549b07..1a9d97e 100644
--- a/fp-interface/sharedtpls/atom.tpl
+++ b/fp-interface/sharedtpls/atom.tpl
@@ -20,6 +20,7 @@
{$subject}
+
{$id|link:post_link}
{assign var=the_date value=$date|date_rfc3339}
{$the_date}
@@ -29,6 +30,15 @@
{$content|tag:the_content}
+
+ {foreach from=$enclosure item=encl}
+
+ {/foreach}
+
{/entry}
{/entry_block}
diff --git a/fp-interface/sharedtpls/rss.tpl b/fp-interface/sharedtpls/rss.tpl
index 3b34864..bc57ab4 100755
--- a/fp-interface/sharedtpls/rss.tpl
+++ b/fp-interface/sharedtpls/rss.tpl
@@ -22,7 +22,11 @@
{$flatpress.email} ({$flatpress.author})
{$date|date_format:"%a, %d %b %Y %H:%M:%S %z"}
{$id|link:comments_link}
-
+
+ {foreach from=$enclosure item=encl}
+
+ {/foreach}
+
{/entry}
diff --git a/fp-plugins/bbcode/inc/stringparser_bbcode.class.php b/fp-plugins/bbcode/inc/stringparser_bbcode.class.php
index 549ab61..f1b4db8 100755
--- a/fp-plugins/bbcode/inc/stringparser_bbcode.class.php
+++ b/fp-plugins/bbcode/inc/stringparser_bbcode.class.php
@@ -156,9 +156,12 @@ class StringParser_BBCode extends StringParser {
* @return bool
*/
function addCode ($name, $callback_type, $callback_func, $callback_params, $content_type, $allowed_within, $not_allowed_within) {
+ // allow override
+ /*
if (isset ($this->_codes[$name])) {
return false; // already exists
}
+ */
if (!preg_match ('/^[a-zA-Z0-9*_!+-]+$/', $name, $code)) {
return false; // invalid
}