Unified naming

This commit is contained in:
slawkens
2021-01-07 11:47:57 +01:00
parent 1fa4b1e660
commit 98bd51436b
3 changed files with 8 additions and 8 deletions

View File

@@ -1425,8 +1425,8 @@ function right($str, $length) {
}
function getCreatureImgPath($creature){
$creature_path = config('creature_images_url');
$creature_gfx_name = trim(strtolower($creature)) . config('creature_images_extension');
$creature_path = config('creatures_images_url');
$creature_gfx_name = trim(strtolower($creature)) . config('creatures_images_extension');
if (!file_exists($creature_path . $creature_gfx_name)) {
$creature_gfx_name = str_replace(" ", "", $creature_gfx_name);
if (file_exists($creature_path . $creature_gfx_name)) {