Skip to content

Commit

Permalink
Merge pull request #4732 from Jimmi08/load-bbcode-buttons-only-if-HTM…
Browse files Browse the repository at this point in the history
…L-is-allowed-for-user

Fixes #4708 load bbcode buttons only if posting HTML is allowed for user
  • Loading branch information
CaMer0n committed Apr 1, 2022
2 parents c510885 + 64dcf0c commit 91f9020
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions e107_handlers/form_handler.php
Expand Up @@ -2490,10 +2490,18 @@ public function bbarea($name, $value='', $template = '', $mediaCat='_common', $s
}
}
}
}


$ret .= e107::getBB()->renderButtons($template,$help_tagid);

if (!check_class(e107::getConfig()->get('post_html', e_UC_MAINADMIN)))
{
$ret .= e107::getBB()->renderButtons($template,$help_tagid);
}

}
else
{
$ret .= e107::getBB()->renderButtons($template,$help_tagid);
}

$ret .= $this->textarea($name, $value, $rows, $cols, $options, $counter); // higher thank 70 will break some layouts.

$ret .= "</div>\n";
Expand Down

0 comments on commit 91f9020

Please sign in to comment.