diff --git a/htdocs/lang/de/ocstyle/search.inc.php b/htdocs/lang/de/ocstyle/search.inc.php
index 24167b6f..51c3aa74 100644
--- a/htdocs/lang/de/ocstyle/search.inc.php
+++ b/htdocs/lang/de/ocstyle/search.inc.php
@@ -92,6 +92,10 @@
$cache_attrib_img_line1 = '
';
$cache_attrib_img_line2 = '
';
+ $search_in_gm = '' . $translate->t('(in GM)','','',0) . '';
+ $search_in_gm_zip = '' . $translate->t('(in GM)','','',0) . '';
+
+
function dateDiff($interval, $dateTimeBegin, $dateTimeEnd)
{
//Parse about any English textual datetime
diff --git a/htdocs/lang/de/ocstyle/search.result.caches.tpl.php b/htdocs/lang/de/ocstyle/search.result.caches.tpl.php
index 179ebfd3..b3c25e85 100644
--- a/htdocs/lang/de/ocstyle/search.result.caches.tpl.php
+++ b/htdocs/lang/de/ocstyle/search.result.caches.tpl.php
@@ -105,7 +105,7 @@
GPX
LOC
KML
- " title="{t}Show in Google Maps{/t}">{t}(in GM){/t}
+ {search_in_gm}
OV2
OVL
TXT*
@@ -120,7 +120,7 @@
GPX
LOC
KML
- " title="{t}Show in Google Maps{/t}">{t}(in GM){/t}
+ {search_in_gm_zip}
OV2
OVL
TXT
diff --git a/htdocs/search.php b/htdocs/search.php
index 2d5cd6f7..aed5773e 100644
--- a/htdocs/search.php
+++ b/htdocs/search.php
@@ -53,10 +53,19 @@
$multiplier['sm'] = 0.62137;
$multiplier['nm'] = 0.53996;
+ // default template variables
+ tpl_set_var('search_in_gm', $search_in_gm);
+ tpl_set_var('search_in_gm_zip', $search_in_gm_zip);
+
if (isset($_REQUEST['queryid']) || isset($_REQUEST['showresult']))
{ // Ocprop: showresult, queryid
$bCookieQueryid = false;
$queryid = isset($_REQUEST['queryid']) ? $_REQUEST['queryid'] : 0;
+ if ($queryid)
+ {
+ tpl_set_var('search_in_gm', '');
+ tpl_set_var('search_in_gm_zip', '');
+ }
}
else
{
@@ -107,14 +116,16 @@
if (mysql_num_rows($query_rs) == 0)
{
- // can happen if logged out after query was created (fix for #3915)
+ // can happen if logged out after query was created (fix for RT #3915)
$queryid = 0;
goto newquery; // goto needs PHP 5.3
+ /*
$tplname = 'error';
tpl_set_var('tplname', 'search.php');
tpl_set_var('error_msg', $error_query_not_found);
tpl_BuildTemplate();
exit;
+ */
}
else
{
@@ -1811,4 +1822,4 @@ function outputLocidSelectionForm($locSql, $urlparams)
tpl_BuildTemplate();
exit;
}
-?>
\ No newline at end of file
+?>