summaryrefslogtreecommitdiff
path: root/lib/noticelist.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/noticelist.php')
-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'));