Fix the URL used to look up locations on the profile pages.

This commit is contained in:
Solomon Peachy 2013-10-08 20:12:17 -04:00
parent 2d3a0012d2
commit 3217ff6290
2 changed files with 3 additions and 2 deletions

View File

@ -22,6 +22,7 @@ v2.38 (Unreleased)
[fix] Script errors when adding/editing equipment
[fix] Fix a couple of straggling warnings.
[fix] Bulk update was broken due to earlier theme changes.
[fix] Fix URL on the profile location pages.
v2.37.1 (December 3, 2012)

View File

@ -373,8 +373,8 @@ order by country, state, city, place");
if ($r[1] == 'Unknown') {
$foo = $strings['generic_unknown'];
} else {
$foo = "$r[1] $r[2] $r[3] $r[4]";
$foo = emit_a("http://maps.google.com/maps?q=$foo=h", $foo, "target=\"_new\"");
$foo = join(" ", array_slice($r, 1, 4));
$foo = emit_a("http://maps.google.com/maps?q=$foo&t=h", $foo, "target=\"_new\"");
}
print emit_td($foo);