diff options
Diffstat (limited to 'ratatoeskr/frontend.php')
-rw-r--r-- | ratatoeskr/frontend.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ratatoeskr/frontend.php b/ratatoeskr/frontend.php index 7995093..a2f1f8d 100644 --- a/ratatoeskr/frontend.php +++ b/ratatoeskr/frontend.php @@ -97,8 +97,8 @@ function article_transform_ste($article, $lang) "urlname" => $article->urlname, "fullurl" => htmlesc("$rel_path_to_root/$lang/{$article->section->name}/{$article->urlname}"), "title" => htmlesc($article->title[$lang]->text), - "text" => textprocessor_apply_translation($article->text[$lang]), - "excerpt" => textprocessor_apply_translation($article->excerpt[$lang]), + "text" => textprocessor_apply_translation(str_replace("%root%", $rel_path_to_root, $article->text[$lang])), + "excerpt" => textprocessor_apply_translation(str_replace("%root%", $rel_path_to_root, $article->excerpt[$lang])), "custom" => $article->custom, "status" => $article->status, "section" => section_transform_ste($article->section, $lang), |