Bug Fix for international translations.
This commit is contained in:
parent
8ff31c77ba
commit
c65a6027c7
@ -49,8 +49,8 @@ class exif_gps_Core {
|
|||||||
if (isset($keys["Latitude"]) && isset($keys["Longitude"])) {
|
if (isset($keys["Latitude"]) && isset($keys["Longitude"])) {
|
||||||
$record = ORM::factory("exif_coordinate");
|
$record = ORM::factory("exif_coordinate");
|
||||||
$record->item_id = $item->id;
|
$record->item_id = $item->id;
|
||||||
$record->latitude = $keys["Latitude"];
|
$record->latitude = str_replace(",", ".", $keys["Latitude"]);
|
||||||
$record->longitude = $keys["Longitude"];
|
$record->longitude = str_replace(",", ".", $keys["Longitude"]);
|
||||||
// Represent N/S/E/W as postive and negative numbers
|
// Represent N/S/E/W as postive and negative numbers
|
||||||
if ($keys["Latitude Reference"] == "S") {
|
if ($keys["Latitude Reference"] == "S") {
|
||||||
$record->latitude = "-" . $record->latitude;
|
$record->latitude = "-" . $record->latitude;
|
||||||
|
Reference in New Issue
Block a user