mirror of
https://github.com/e107inc/e107.git
synced 2025-08-12 09:34:54 +02:00
Parser cleanup
This commit is contained in:
@@ -648,6 +648,11 @@ class comment
|
||||
}
|
||||
|
||||
$tp = e107::getParser();
|
||||
|
||||
// if(THEME_LEGACY !== true) // old themes might still use bbcodes.
|
||||
{
|
||||
$comment = $tp->toText($comment);
|
||||
}
|
||||
|
||||
$comment = trim($comment);
|
||||
|
||||
@@ -711,7 +716,8 @@ class comment
|
||||
{
|
||||
$author_name = $data; //BC Fix.
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
global $e107,$rater;
|
||||
|
||||
@@ -720,6 +726,11 @@ class comment
|
||||
$tp = e107::getParser();
|
||||
$pref = e107::getPref();
|
||||
|
||||
// if(THEME_LEGACY !== true) // old themes might still use bbcodes.
|
||||
{
|
||||
$comment = $tp->toText($comment);
|
||||
}
|
||||
|
||||
if ($this->getCommentPermissions() != 'rw') return;
|
||||
|
||||
if ($user_func = e107::getOverride()->check($this,'enter_comment'))
|
||||
|
Reference in New Issue
Block a user