From ab4c9bed4f4f972cf235505ffce4ef9aa661b8c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodrigo=20Paix=C3=A3o?= Date: Fri, 21 Dec 2018 13:39:35 -0200 Subject: [PATCH] Fix Players Online Page (OTHire Compatibility) (#334) - Now you can see players outfits in page. --- onlinelist.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/onlinelist.php b/onlinelist.php index a75b9e7..491cd09 100644 --- a/onlinelist.php +++ b/onlinelist.php @@ -7,7 +7,10 @@ $array = false; $loadFlags = ($config['country_flags']['enabled'] && $config['country_flags']['onlinelist']) ? true : false; $loadOutfits = ($config['show_outfits']['onlinelist']) ? true : false; -$outfitQuery = ($loadOutfits) ? ", `p`.`lookbody` AS `body`, `p`.`lookfeet` AS `feet`, `p`.`lookhead` AS `head`, `p`.`looklegs` AS `legs`, `p`.`looktype` AS `type`, `p`.`lookaddons` AS `addons`" : ""; +if ($config['ServerEngine'] != 'OTHIRE') + $outfitQuery = ($loadOutfits) ? ", `p`.`lookbody` AS `body`, `p`.`lookfeet` AS `feet`, `p`.`lookhead` AS `head`, `p`.`looklegs` AS `legs`, `p`.`looktype` AS `type`, `p`.`lookaddons` AS `addons`" : ""; +else + $outfitQuery = ($loadOutfits) ? ", `p`.`lookbody` AS `body`, `p`.`lookfeet` AS `feet`, `p`.`lookhead` AS `head`, `p`.`looklegs` AS `legs`, `p`.`looktype` AS `type`" : ""; // Small 30 seconds players_online cache. $cache = new Cache('engine/cache/onlinelist'); @@ -63,4 +66,4 @@ if (!empty($array) && $array !== false) { echo 'Nobody is online.'; } ?> - \ No newline at end of file +