From: Evan Prodromou Date: Sat, 31 Dec 2011 18:26:07 +0000 (-0800) Subject: Better position formatting X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3d87176ecec357a9d0812c50a7f50376eb465b03;p=quix0rs-gnu-social.git Better position formatting --- diff --git a/lib/activity.php b/lib/activity.php index 99c76c9126..9f0186c650 100644 --- a/lib/activity.php +++ b/lib/activity.php @@ -393,15 +393,9 @@ class Activity 'deprecated' => true, ); - $lat = $loc->lat + 0.0; - $lon = $loc->lon + 0.0; - - $position = (($lat > 0.0) ? ("+".$lat) : $lat) . "." . - (($lon > 0.0) ? ("+".$lon) : $lon) . "/"; - $activity['location'] = array( 'objectType' => 'place', - 'position' => $position + 'position' => sprintf("%+02.5F.%+03.5F/", $loc->lat, $loc->lon); ); $name = $loc->getName();