1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-06 06:38:00 +02:00

Theme layout (Visibility Filter) detection enhanced. Help information improved.

This commit is contained in:
Cameron
2019-04-06 12:11:05 -07:00
parent 345c0ec959
commit 3d9ed2b040
7 changed files with 60 additions and 28 deletions

View File

@@ -744,7 +744,10 @@ class pageClass
if($this->cacheData['COMMENT_FLAG'])
{
$vars = new e_vars(array('comments' => $this->pageComment(true)));
$comments = e107::getScBatch('page',null,'cpage')->setVars($vars)->cpagecomments();
/** @var cpage_shortcodes $sc */
$sc = e107::getScBatch('page',null,'cpage');
$sc->setVars($vars);
$comments = $sc->cpagecomments();
}
define('e_PAGETITLE', eHelper::formatMetaTitle($this->cacheData['TITLE']));
define('META_DESCRIPTION', $this->cacheData['META_DSCR']);
@@ -996,6 +999,7 @@ class pageClass
if (isset($_POST['commentsubmit']))
{
$pid = null; //FIXME ?
$cobj->enter_comment($_POST['author_name'], $_POST['comment'], "page", $this->pageID, $pid, $_POST['subject']);
$e107cache = e107::getCache();
$e107cache->clear("comment.page.".$this->pageID);