diff --git a/e107_plugins/forum/shortcodes/batch/post_shortcodes.php b/e107_plugins/forum/shortcodes/batch/post_shortcodes.php
index 53a870207..b55bd07da 100644
--- a/e107_plugins/forum/shortcodes/batch/post_shortcodes.php
+++ b/e107_plugins/forum/shortcodes/batch/post_shortcodes.php
@@ -422,7 +422,7 @@ class plugin_forum_post_shortcodes extends e_shortcode
$opts = array(0 => LAN_FORUM_3038, 1 => LAN_FORUM_1011, 2 => LAN_FORUM_1013);
- return "
".e107::getForm()->radio('threadtype',$opts, $thread_sticky)."
";
+ return "".e107::getForm()->radio('threadtype',$opts, $thread_sticky)."
";
// return "
post thread as
// ".LAN_1." ".LAN_2." ".LAN_3."";
@@ -448,25 +448,28 @@ class plugin_forum_post_shortcodes extends e_shortcode
function sc_forum_post_caption()
{
-// global $forumInfo;
- $tp = e107::getParser();
-// var_dump ($this);
-//$this->forumObj->threadGet($this->id, false)
- if ($this->var['action'] == "rp")
- {
- $pre = LAN_FORUM_1003;
- $name = $tp->toHTML($this->var['thread_name'], false, 'no_hook, emotes_off');
- $url = e107::url('forum', 'topic', $this->var);
- $post = LAN_FORUM_2006;
- }
- if ($this->var['action'] == "nt")
- {
- $pre = LAN_FORUM_1001;
- $name = $tp->toHTML($this->var['forum_name'], false, 'no_hook, emotes_off');
- $url = e107::url('forum', 'forum', $this->var);
- $post = LAN_FORUM_2005;
- }
- return $pre.($url?": {$name} - ":$name).$post;
+
+
+ $tp = e107::getParser();
+
+ if($this->var['action'] == "rp")
+ {
+ $pre = LAN_FORUM_1003;
+ $name = $tp->toHTML($this->var['thread_name'], false, 'no_hook, emotes_off');
+ $url = e107::url('forum', 'topic', $this->var);
+ $post = LAN_FORUM_2006;
+ }
+ if($this->var['action'] == "nt")
+ {
+ $pre = LAN_FORUM_1001;
+ $name = $tp->toHTML($this->var['forum_name'], false, 'no_hook, emotes_off');
+ $url = e107::url('forum', 'forum', $this->var);
+ $post = LAN_FORUM_2005;
+ }
+
+ $title = ''; // todo?
+
+ return $pre . ($url ? ": {$name} - " : $name) . $post;
}
function sc_noemotes()