1
0

Bug Fix for international translations.

This commit is contained in:
rWatcher 2010-03-05 13:54:25 -05:00
parent 8ff31c77ba
commit c65a6027c7

View File

@ -49,8 +49,8 @@ class exif_gps_Core {
if (isset($keys["Latitude"]) && isset($keys["Longitude"])) {
$record = ORM::factory("exif_coordinate");
$record->item_id = $item->id;
$record->latitude = $keys["Latitude"];
$record->longitude = $keys["Longitude"];
$record->latitude = str_replace(",", ".", $keys["Latitude"]);
$record->longitude = str_replace(",", ".", $keys["Longitude"]);
// Represent N/S/E/W as postive and negative numbers
if ($keys["Latitude Reference"] == "S") {
$record->latitude = "-" . $record->latitude;