mirror of
https://github.com/e107inc/e107.git
synced 2025-07-29 19:00:26 +02:00
#1143 - Some forum fixes for v1 themes
This commit is contained in:
@@ -61,7 +61,7 @@ class plugin_forum_post_shortcodes extends e_shortcode
|
|||||||
|
|
||||||
function sc_forumjump()
|
function sc_forumjump()
|
||||||
{
|
{
|
||||||
return forumjump();
|
return forumjump(); // FIXME - broken in v1 themes
|
||||||
}
|
}
|
||||||
|
|
||||||
function sc_userbox()
|
function sc_userbox()
|
||||||
@@ -95,8 +95,8 @@ class plugin_forum_post_shortcodes extends e_shortcode
|
|||||||
|
|
||||||
function sc_subjectbox()
|
function sc_subjectbox()
|
||||||
{
|
{
|
||||||
global $subjectbox, $action;
|
global $subjectbox;
|
||||||
return ($action == 'nt' ? $subjectbox : '');
|
return ($this->var['action'] == 'nt' ? $subjectbox : '');
|
||||||
}
|
}
|
||||||
|
|
||||||
function sc_forum_subject()
|
function sc_forum_subject()
|
||||||
@@ -207,7 +207,7 @@ class plugin_forum_post_shortcodes extends e_shortcode
|
|||||||
|
|
||||||
$uploadClass = e107::pref('core','upload_class');
|
$uploadClass = e107::pref('core','upload_class');
|
||||||
|
|
||||||
if ($forum->prefs->get('attach') && (check_class($uploadClass) || getperms('0')))
|
if ($this->forum->prefs->get('attach') && (check_class($uploadClass) || getperms('0')))
|
||||||
{
|
{
|
||||||
if (is_writable(e_PLUGIN.'forum/attachments'))
|
if (is_writable(e_PLUGIN.'forum/attachments'))
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user