Skip to content

Commit d4165d7

Browse files
committed
Fix shortcode replacement lines
1 parent 68d6ccd commit d4165d7

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

controllers/front/blog.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,13 +152,15 @@ public function initContent()
152152
// Default blog text
153153
$everblog_top_text = $this->module::getConfigInMultipleLangs('EVERBLOG_TOP_TEXT');
154154
$default_blog_top_text = $everblog_top_text[(int) Context::getContext()->language->id];
155-
$default_blog_top_text =
156-
$default_blog_top_text->customer->id
155+
$default_blog_top_text = EverPsBlogPost::changeShortcodes(
156+
$default_blog_top_text,
157+
(int) Context::getContext()->customer->id
157158
);
158159
$everblog_bottom_text = $this->module::getConfigInMultipleLangs('EVERBLOG_BOTTOM_TEXT');
159160
$default_blog_bottom_text = $everblog_bottom_text[(int) Context::getContext()->language->id];
160-
$default_blog_bottom_text =
161-
$default_blog_bottom_text->customer->id
161+
$default_blog_bottom_text = EverPsBlogPost::changeShortcodes(
162+
$default_blog_bottom_text,
163+
(int) Context::getContext()->customer->id
162164
);
163165
Hook::exec('actionBeforeEverBlogInitContent', [
164166
'blog_post_number' => &$this->post_number,

0 commit comments

Comments
 (0)