From 3728a2a2feb7474ddb2ef90340112bea8fda0574 Mon Sep 17 00:00:00 2001 From: Arno Renevier Date: Mon, 31 Oct 2011 08:49:18 +0100 Subject: [PATCH] fixes: could not export paths without title --- application/views/scripts/idx/index.phtml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/application/views/scripts/idx/index.phtml b/application/views/scripts/idx/index.phtml index 03355a2..da47129 100644 --- a/application/views/scripts/idx/index.phtml +++ b/application/views/scripts/idx/index.phtml @@ -85,14 +85,15 @@ if ($this->errorMsg) {
translate("export")?>
path->displayTitle) . '.kml'; + $fileName = $this->path->title ?: $this->path->id; + $href = $fullBaseUrl . 'geom/' . rawurlencode($fileName) . '.kml'; printf('%s', $href, $this->translate('kml export'), $this->translate('kml export')); print '
'; - $href = $fullBaseUrl . 'geom/' . rawurlencode($this->path->displayTitle) . '.gpx'; + $href = $fullBaseUrl . 'geom/' . rawurlencode($fileName) . '.gpx'; printf('%s', $href, $this->translate('gpx export'), -- 2.39.2