Skip to content

Commit

Permalink
Fix for Moved all article templates in themes to article folder
Browse files Browse the repository at this point in the history
Fix for commit 8d2a00d
  • Loading branch information
eSilverStrike committed Apr 5, 2022
1 parent fef744b commit d7814ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions system/lib-article.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ function STORY_renderArticle($story, $index = '', $storyTpl = 'articletext.thtml

// Need to close and recreate template class since issues arise when theme templates are cached
unset($article); // Close template class
$article = COM_newTemplate(CTL_core_templatePath($_CONF['path_layout']));
$article = COM_newTemplate(CTL_core_templatePath($templateDir));
$article->set_file(array(
'article' => $storyTpl,
'bodytext' => 'articlebodytext.thtml',
Expand All @@ -160,7 +160,7 @@ function STORY_renderArticle($story, $index = '', $storyTpl = 'articletext.thtml

// Now find structured data cache if required
// Structured Data is cached by itself. Need to cache in case structured data autotags exist in page.
// Since autotags are executed when the page is rendered therefore we have to cache structred data if page is cached.
// Since autotags are executed when the page is rendered therefore we have to cache structured data if page is cached.
// Only cache and use structured data on full article view
if ($index == 'n' && !empty($story->DisplayElements('structured_data_type')) && $cache_found) {
if (!$_STRUCT_DATA->get_cachedScript('article', $story->getSid(), $cache_time)) {
Expand Down

0 comments on commit d7814ef

Please sign in to comment.