Railsbin – The vulnerable pastebin service!

User:

Title: Fix

Content:

diff --git a/core/module/Dog/dog_modules/dog_module/Shadowlamb/core/SR_Party.php b/core/module/Dog/dog_modules/dog_module/Shadowlamb/core/SR_Party.php
index 5402aadc..9f2c57a0 100644
--- a/core/module/Dog/dog_modules/dog_module/Shadowlamb/core/SR_Party.php
+++ b/core/module/Dog/dog_modules/dog_module/Shadowlamb/core/SR_Party.php
@@ -1531,10 +1531,12 @@ final class SR_Party extends GDO
 //                             return sprintf("{$b}going{$b} to %s. %s remaining.", $this->getLocation(), $this->displayETA());

                        case 'hunt':
-                               return $player->lang('pa_hunt', array($this->getTarget(), $display_eta));
+                $display_target = SR_Player::getByID($this->getTarget())->displayName();
+                               return $player->lang('pa_hunt', array($display_target, $display_eta));
 //                             return sprintf("{$b}hunting{$b} %s. %s remaining.", $this->getTarget(), $this->displayETA());

                        case 'hijack':
+                $display_target = SR_Player::getByID($this->getTarget())->displayName();
                                return $player->lang('pa_hijack', array($this->getTarget(), $this->getLocation(), $display_eta));
 //                             return sprintf("{$b}hijacking{$b} %s at %s. %s remaining.", $this->getTarget(), $this->getLocation(), $this->displayETA());

Edit | Back