summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorCraig Andrews <candrews@integralblue.com>2009-11-20 17:40:38 -0500
committerCraig Andrews <candrews@integralblue.com>2009-11-20 17:40:38 -0500
commit83ba93e945e5b933a73139f9e5db710444c99893 (patch)
treeef1664a9b707d1d7c9114f674f069ff11743f110 /lib
parent38f8d3d11b10d20b3802b1769568ca987ad4cd95 (diff)
Change the format of the lat/lon output on a notice in HTML
Diffstat (limited to 'lib')
-rw-r--r--lib/noticelist.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/noticelist.php b/lib/noticelist.php
index 5877827ff..167ba994b 100644
--- a/lib/noticelist.php
+++ b/lib/noticelist.php
@@ -392,15 +392,14 @@ class NoticeListItem extends Widget
$name = $location->getName();
- if (empty($name)) {
- // XXX: Could be a translation issue. Fall back to... something?
- return;
- }
-
$lat = $this->notice->lat;
$lon = $this->notice->lon;
$latlon = (!empty($lat) && !empty($lon)) ? $lat.';'.$lon : '';
+ if (empty($name)) {
+ $name = $lat . ' ' . $lon; //TODO tranform to N/S deg/min/sec format
+ }
+
$url = $location->getUrl();
$this->out->elementStart('span', array('class' => 'location'));