From c30300c3682d06a2592743e1825f3be8b428b95b Mon Sep 17 00:00:00 2001 From: slawkens Date: Thu, 8 Oct 2020 00:13:35 +0200 Subject: [PATCH] New configurable: item_images_extension --- config.php | 1 + system/functions.php | 2 +- system/pages/creatures.php | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/config.php b/config.php index 7e3c7f26..4b9a51d0 100644 --- a/config.php +++ b/config.php @@ -87,6 +87,7 @@ $config = array( // images 'outfit_images_url' => 'http://outfit-images.ots.me/outfit.php', // set to animoutfit.php for animated outfit 'item_images_url' => 'http://item-images.ots.me/1092/', // set to images/items if you host your own items in images folder + 'item_images_extension' => '.gif', // account 'account_management' => true, // disable if you're using other method to manage users (fe. tfs account manager) diff --git a/system/functions.php b/system/functions.php index 0a996de6..903570db 100644 --- a/system/functions.php +++ b/system/functions.php @@ -168,7 +168,7 @@ function getItemImage($id, $count = 1) $file_name .= '-' . $count; global $config; - return '' .$id . ''; + return '' .$id . ''; } function getFlagImage($country) diff --git a/system/pages/creatures.php b/system/pages/creatures.php index b875478f..dda4544b 100644 --- a/system/pages/creatures.php +++ b/system/pages/creatures.php @@ -146,7 +146,7 @@ if (empty($_REQUEST['creature'])) { $name = getItemNameById($item['id']); $tooltip = $name . '
Chance: ' . round($item['chance'] / 1000, 2) . '%
Max count: ' . $item['count']; - echo ' ' . $name . ''; + echo ' ' . $name . ''; $i++; }