From 9c1ae6fc6516d871832511062fdc6ce74428cecc Mon Sep 17 00:00:00 2001 From: robertall Date: Thu, 26 Jun 2008 06:15:55 +0000 Subject: [PATCH] [MDL-14440] Show latlong field at list and single view in a prettier way. Merged from MOODLE_19_STABLE. --- mod/data/field/latlong/field.class.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mod/data/field/latlong/field.class.php b/mod/data/field/latlong/field.class.php index 61f3fb2994..38666ec34f 100755 --- a/mod/data/field/latlong/field.class.php +++ b/mod/data/field/latlong/field.class.php @@ -121,7 +121,6 @@ class data_field_latlong extends data_field_base { $compasslong = "" . sprintf('%01.4f', $long) . "°E"; } $str = '
'; - $str.= "$compasslat, $compasslong"; // Now let's create the jump-to-services link $servicesshown = explode(',', $this->field->param1); @@ -141,9 +140,9 @@ class data_field_latlong extends data_field_base { if(sizeof($servicesshown)==1 && $servicesshown[0]) { $str .= " $servicesshown[0] "; + ."' title='$servicesshown[0]'>$compasslat, $compasslong"; } elseif (sizeof($servicesshown)>1) { - $str .= "\n"; foreach($servicesshown as $servicename){ // Add a link to a service $str .= "\n
'; return $str; -- 2.39.5