mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
[MDL-15423] Remove useless latlong formatting operations. Merged from MOODLE_19_STABLE.
This commit is contained in:
parent
ffba912a59
commit
0721309f29
@ -111,14 +111,14 @@ class data_field_latlong extends data_field_base {
|
||||
return '';
|
||||
}
|
||||
if($lat < 0) {
|
||||
$compasslat = "" . sprintf('%01.4f', 0 - $lat) . '°S';
|
||||
$compasslat = sprintf('%01.4f', -$lat) . '°S';
|
||||
} else {
|
||||
$compasslat = "" . sprintf('%01.4f', $lat) . "°N";
|
||||
$compasslat = sprintf('%01.4f', $lat) . '°N';
|
||||
}
|
||||
if($long < 0) {
|
||||
$compasslong = "" . sprintf('%01.4f', 0 - $long) . '°W';
|
||||
$compasslong = sprintf('%01.4f', -$long) . '°W';
|
||||
} else {
|
||||
$compasslong = "" . sprintf('%01.4f', $long) . "°E";
|
||||
$compasslong = sprintf('%01.4f', $long) . '°E';
|
||||
}
|
||||
$str = '<form style="display:inline;">';
|
||||
|
||||
@ -204,7 +204,7 @@ class data_field_latlong extends data_field_base {
|
||||
}
|
||||
|
||||
function export_text_value($record) {
|
||||
return sprintf('%01.4f', $record->content) . " " . sprintf('%01.4f', $record->content1);
|
||||
return sprintf('%01.4f', $record->content) . ' ' . sprintf('%01.4f', $record->content1);
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user