From 5226e9c01c5cc5ce5e923e4d4d7f8372571e3fc2 Mon Sep 17 00:00:00 2001 From: danpros Date: Sun, 2 Jun 2024 19:08:31 +0700 Subject: [PATCH] Update version + cleaning up --- cache/installedVersion.json | 2 +- index.php | 2 +- lang/ar_AR.ini | 2 +- lang/da_DK.ini | 2 +- lang/de_DE.ini | 2 +- lang/de_DE_gender_doppelpunkt.ini | 2 +- lang/de_DE_gender_dudenkonform.ini | 2 +- lang/el_GR.ini | 2 +- lang/en_US.ini | 2 +- lang/es_ES.ini | 2 +- lang/fa_IR.ini | 2 +- lang/fr_FR.ini | 2 +- lang/gu_GU.ini | 2 +- lang/hi_HI.ini | 2 +- lang/hr_HR.ini | 2 +- lang/hu_HU.ini | 2 +- lang/id_ID.ini | 2 +- lang/it_IT.ini | 2 +- lang/ko_KO.ini | 2 +- lang/ms_MY.ini | 2 +- lang/nl_NL.ini | 2 +- lang/pl_PL.ini | 2 +- lang/pt_BR.ini | 2 +- lang/ru_RU.ini | 2 +- lang/sv_SE.ini | 2 +- lang/tr_TR.ini | 2 +- lang/uk_UA.ini | 2 +- lang/zh_CN.ini | 2 +- lang/zh_TW.ini | 2 +- system/admin/views/config.html.php | 9 ++++++++- system/admin/views/update.html.php | 5 +++++ system/admin/views/updated-to.html.php | 7 ++++++- system/includes/functions.php | 15 ++++++++------- 33 files changed, 56 insertions(+), 38 deletions(-) diff --git a/cache/installedVersion.json b/cache/installedVersion.json index bf926e3..5d3c1db 100644 --- a/cache/installedVersion.json +++ b/cache/installedVersion.json @@ -1,3 +1,3 @@ { - "tag_name": "v2.9.8" + "tag_name": "v2.9.9" } \ No newline at end of file diff --git a/index.php b/index.php index ad12fcd..ae2de81 100644 --- a/index.php +++ b/index.php @@ -1,6 +1,6 @@


+
Note:
@@ -157,7 +164,7 @@ Please install and enable the INTL extension to format the date format to your l
- +
diff --git a/system/admin/views/update.html.php b/system/admin/views/update.html.php index 959f63b..2f72fd8 100644 --- a/system/admin/views/update.html.php +++ b/system/admin/views/update.html.php @@ -54,5 +54,10 @@ if (empty($updater->getNewestInfo())) { echo \Michelf\MarkdownExtra::defaultTransform($info['body']); echo ''; echo '

Read on Github

'; + if (config('show.version') == 'false') { + if(file_exists('cache/installedVersion.json')) { + unlink('cache/installedVersion.json'); + } + } } } diff --git a/system/admin/views/updated-to.html.php b/system/admin/views/updated-to.html.php index be105a2..d5cc320 100644 --- a/system/admin/views/updated-to.html.php +++ b/system/admin/views/updated-to.html.php @@ -5,4 +5,9 @@ if (file_exists('install.php')) { unlink('install.php'); } -?> \ No newline at end of file +if (config('show.version') == 'false') { + if(file_exists('cache/installedVersion.json')) { + unlink('cache/installedVersion.json'); + } +} +?> diff --git a/system/includes/functions.php b/system/includes/functions.php index 6c76093..1ed4241 100644 --- a/system/includes/functions.php +++ b/system/includes/functions.php @@ -2969,7 +2969,7 @@ function sitemap_post_path($posts, $page = 1, $perpage = 0) if (empty($posts)) { $posts = get_blog_posts(); } - + krsort($posts); $tmp = array(); @@ -3119,7 +3119,7 @@ function generate_sitemap($str) if ($str == 'post.xml') { $map .= ''; - + $totalPosts = array(); $totalPosts = get_blog_posts(); @@ -3443,20 +3443,21 @@ function head_contents() { $output = ''; $wmt_id = config('google.wmt.id'); - $version = 'HTMLy ' . constant('HTMLY_VERSION'); + if (config('show.version') !== 'false') { + $version = 'HTMLy ' . constant('HTMLY_VERSION'); + } else { + $version = 'HTMLy'; + } $favicon = config('favicon.image'); if (empty($favicon)) { $favicon = '' . "\n"; } else { $favicon = '' . "\n"; } - $output .= '' . "\n"; $output .= '' . "\n"; $output .= '' . "\n"; - if (config('show.version') == 'true') { - $output .= '' . "\n"; - } + $output .= '' . "\n"; $output .= $favicon; $output .= '' . "\n"; $output .= '' . "\n";