From b4b3843abc6fbca42b82acc5a6bf70c95fc53bff Mon Sep 17 00:00:00 2001 From: Znote Date: Sat, 24 Oct 2015 16:57:48 +0200 Subject: [PATCH] Showing flags in highscores.php is optional in config.php --- highscores.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/highscores.php b/highscores.php index 9ff7fe0..134ec68 100644 --- a/highscores.php +++ b/highscores.php @@ -87,11 +87,14 @@ if ($scores) { for ($i = 0; $i < count($scores[$type]); $i++) { if (pageCheck($i, $page, $rowsPerPage)) { $profile_data = user_character_data($scores[$type][$i]['id'], 'account_id'); + $account_data = user_znote_account_data($profile_data['account_id'], 'flag'); + if ($config['country_flags'] === true && count($account_data['flag']) > 1) $flag = ' '; + else $flag = ''; ?> - '; ?> + ". $scores[$type][$i]['experience'] .""; ?>