diff --git a/system/libs/pot/OTS_Player.php b/system/libs/pot/OTS_Player.php index 491a6303d2..060d482b12 100644 --- a/system/libs/pot/OTS_Player.php +++ b/system/libs/pot/OTS_Player.php @@ -1229,6 +1229,13 @@ public function setDirection($direction) $this->data['direction'] = (int) $direction; } + public function getOutfit(): string + { + $hasLookAddons = $this->db->hasColumn('players', 'lookaddons'); + + return setting('core.outfit_images_url') . '?id=' . $this->getLookType() . ($hasLookAddons ? '&addons=' . $this->getLookAddons() : '') . '&head=' . $this->getLookHead() . '&body=' . $this->getLookBody() . '&legs=' . $this->getLookLegs() . '&feet=' . $this->getLookFeet(); + } + /** * Body color. * diff --git a/system/pages/forum/show_thread.php b/system/pages/forum/show_thread.php index 51dcd09647..e4c53f1610 100644 --- a/system/pages/forum/show_thread.php +++ b/system/pages/forum/show_thread.php @@ -60,7 +60,7 @@ } if($config['characters']['outfit']) { - $post['outfit'] = setting('core.outfit_images_url') . '?id=' . $player->getLookType() . ($lookaddons ? '&addons=' . $player->getLookAddons() : '') . '&head=' . $player->getLookHead() . '&body=' . $player->getLookBody() . '&legs=' . $player->getLookLegs() . '&feet=' . $player->getLookFeet(); + $post['outfit'] = $player->getOutfit(); } $groupName = '';