1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-12 09:34:54 +02:00

Parser cleanup

This commit is contained in:
Cameron
2017-09-19 16:19:39 -07:00
parent 80d69c4293
commit 02e80f50de
8 changed files with 170 additions and 129 deletions

View File

@@ -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'))