From bc1247603845b91cc73baffd5777878f2fd13159 Mon Sep 17 00:00:00 2001 From: danpros Date: Sun, 17 Dec 2023 14:50:50 +0700 Subject: [PATCH] Translate string --- system/htmly.php | 6 +++--- system/includes/functions.php | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/system/htmly.php b/system/htmly.php index 894ff6a..2d2fd82 100644 --- a/system/htmly.php +++ b/system/htmly.php @@ -2972,8 +2972,8 @@ get('/:static/:sub', function ($static, $sub) { header("location: $redir", TRUE, 301); } - $father_post = get_static_post($static); - if (!$father_post) { + $parent_post = get_static_post($static); + if (!$parent_post) { not_found(); } $post = get_static_sub_post($static, $sub); @@ -3020,7 +3020,7 @@ get('/:static/:sub', function ($static, $sub) { 'description' => $post->description, 'canonical' => $post->url, 'bodyclass' => 'in-page ' . strtolower($static) . ' ' . strtolower($sub) , - 'breadcrumb' => '' . config('breadcrumb.home') . ' » ' . $father_post[0]->title . ' » ' . $post->title, + 'breadcrumb' => '' . config('breadcrumb.home') . ' » ' . $parent_post[0]->title . ' » ' . $post->title, 'p' => $post, 'type' => 'subPage', 'is_subpage' => true, diff --git a/system/includes/functions.php b/system/includes/functions.php index 50e0f44..eded31f 100644 --- a/system/includes/functions.php +++ b/system/includes/functions.php @@ -1959,10 +1959,10 @@ function tab($p) $role = user('role', $user); if (isset($p->author)) { if ($user === $p->author || $role === 'admin') { - echo '
'; + echo '
'; } } else { - echo '
'; + echo '
'; } }