Please report bugs here, please be very detailed in your bug reports. If you've come up with some code to fix the bug, please post it here.
- Posts: 9
- Joined: Wed Jan 13, 2010 18:37
KB version 188.8.131.52 (YC-119-7 1.0)
If the pilot's name contains a dash, then it is displayed incorrectly on the pilot detail and kill detail pages.
Problem code in class.pilot.php at line 140:
Code: Select all
// Hacky, hacky, hack hack
// TODO: Fix this and change old kills to suit.
$pos = strpos($this->name, "- ");
if ($pos === false) return $this->name;
else if (strpos($this->name, "Moon") == false)
return substr($this->name, $pos + 2);
else return $this->name;
if the pilot name for example "In-Name- Dash", the function getName() returns "Dash".
- Posts: 1444
- Joined: Wed Feb 22, 2012 12:11
Oh dear, now the chickens come home to roost. I'll try to figure something out.
Thanks for reporting!
Return to “Bug Reporting”
Who is online
Users browsing this forum: No registered users and 3 guests