diff --git a/library/includes/page_footer.php b/library/includes/page_footer.php index d5079e666..bf0f2fba7 100644 --- a/library/includes/page_footer.php +++ b/library/includes/page_footer.php @@ -16,7 +16,7 @@ global $bb_cfg, $userdata, $template, $DBS, $lang; if (!empty($template)) { $template->assign_vars([ 'SIMPLE_FOOTER' => !empty($gen_simple_header), - 'POWERED' => 'Fueled by TorrentPier © 2005-' . date('Y'), + 'POWERED' => 'Fueled by TorrentPier with love ❤️ | © 2005-' . date('Y'), 'SHOW_ADMIN_LINK' => (IS_ADMIN && !defined('IN_ADMIN')), 'ADMIN_LINK_HREF' => 'admin/index.php', ]); diff --git a/library/includes/page_header.php b/library/includes/page_header.php index 4b65c6566..0429f9389 100644 --- a/library/includes/page_header.php +++ b/library/includes/page_header.php @@ -10,12 +10,12 @@ if (!defined('BB_ROOT')) { die(basename(__FILE__)); } + if (defined('PAGE_HEADER_SENT')) { return; } // Parse and show the overall page header - global $page_cfg, $userdata, $user, $ads, $bb_cfg, $template, $lang, $images; $logged_in = (int)!empty($userdata['session_logged_in']); diff --git a/library/language/source/main.php b/library/language/source/main.php index 0b4d16b13..b77a47425 100644 --- a/library/language/source/main.php +++ b/library/language/source/main.php @@ -514,7 +514,6 @@ $lang['AVATAR_PANEL'] = 'Avatar control panel'; $lang['WEBSITE'] = 'Website'; $lang['LOCATION'] = 'Location'; -$lang['LOCATION_FLAGS'] = 'Flag images are rendered by country codes:'; $lang['CONTACT'] = 'Contact'; $lang['EMAIL_ADDRESS'] = 'E-mail address'; $lang['SEND_PRIVATE_MESSAGE'] = 'Send private message'; diff --git a/src/Helpers/CronHelper.php b/src/Helpers/CronHelper.php index 3ee881be9..56765bfcc 100644 --- a/src/Helpers/CronHelper.php +++ b/src/Helpers/CronHelper.php @@ -61,7 +61,7 @@ class CronHelper */ public static function touchLockFile(string $lock_file): void { - file_write('', $lock_file, 0, true, true); + file_write('', $lock_file, replace_content: true); } /** diff --git a/src/Legacy/Cache/File.php b/src/Legacy/Cache/File.php index 47c898316..965c3bf6a 100644 --- a/src/Legacy/Cache/File.php +++ b/src/Legacy/Cache/File.php @@ -69,7 +69,7 @@ class File extends Common $this->cur_query = null; $this->num_queries++; - return (bool)file_write($filecache, $filename, false, true, true); + return (bool)file_write($filecache, $filename, max_size: false, replace_content: true); } public function rm($name = '') diff --git a/src/Legacy/Datastore/File.php b/src/Legacy/Datastore/File.php index aa4f3f268..797361c5b 100644 --- a/src/Legacy/Datastore/File.php +++ b/src/Legacy/Datastore/File.php @@ -46,7 +46,7 @@ class File extends Common $this->cur_query = null; $this->num_queries++; - return (bool)file_write($filecache, $filename, false, true, true); + return (bool)file_write($filecache, $filename, max_size: false, replace_content: true); } public function clean() diff --git a/styles/templates/default/usercp_register.tpl b/styles/templates/default/usercp_register.tpl index 8ed894d92..42eaee856 100644 --- a/styles/templates/default/usercp_register.tpl +++ b/styles/templates/default/usercp_register.tpl @@ -156,7 +156,7 @@ {L_LOCATION}: -

{L_LOCATION_FLAGS} {L_LIST}
+

❤️ Country flags provided by https://github.com/hampusborgos/country-flags/