Skip to content
Permalink
Browse files

stay in ignore list after deleting entry; fixes #738

  • Loading branch information...
following5 committed Jul 7, 2015
1 parent 4cf0784 commit 6cd3af59bcb6c41f18619a09dcb3d7d80a57ae21
Showing with 3 additions and 2 deletions.
  1. +2 −1 htdocs/ignore.php
  2. +1 −1 htdocs/templates2/ocstyle/myignores.tpl
@@ -9,6 +9,7 @@
$cache_id = isset($_GET['cacheid']) ? $_GET['cacheid']+0 : 0;
$action = isset($_GET['action']) ? $_GET['action'] : '';
$target = isset($_GET['target']) ? $_GET['target'] : 'viewcache.php?cacheid=' . $cache_id;
$login->verify();
@@ -44,5 +45,5 @@
sql("DELETE FROM `map2_data` WHERE `result_id`='&1'", $map_result_id);
}
$tpl->redirect('viewcache.php?cacheid=' . ($cache_id+0));
$tpl->redirect($target);
?>
@@ -26,7 +26,7 @@
<td class="{$listcolor}">{include file="res_cacheicon_22.tpl" cachetype=$ignoreItem.type|escape}</td>
<td class="{$listcolor}">{include file="res_cachestatus.tpl" status=$ignoreItem.status}</td>
<td class="{$listcolor}"><span style="{include file="res_cachestatus_span.tpl" status=$ignoreItem.status}"><a href="viewcache.php?wp={$ignoreItem.wp}">{$ignoreItem.name|escape}</a></span> {include file="res_oconly.tpl" oconly=$ignoreItem.oconly}</td>
<td class="{$listcolor}"><nobr>[<a href="javascript:if(confirm('{t escape=js}Do you really want to delete this entry?{/t}'))location.href='ignore.php?cacheid={$ignoreItem.cacheid}&action=removeignore'">{t}do not ignore{/t}</a>]</nobr></td>
<td class="{$listcolor}"><nobr>[<a href="javascript:if(confirm('{t escape=js}Do you really want to delete this entry?{/t}'))location.href='ignore.php?cacheid={$ignoreItem.cacheid}&action=removeignore&target=myignores.php'">{t}do not ignore{/t}</a>]</nobr></td>
</tr>
{foreachelse}
<tr><td colspan="4"><br />{t}You do not ignore any geocaches now.{/t}</td></tr>

0 comments on commit 6cd3af5

Please sign in to comment.
You can’t perform that action at this time.