Skip to content
Permalink
Browse files

return to editcache after modifying cache pics; updates #880

  • Loading branch information...
following5 committed Jan 3, 2016
1 parent b99df10 commit f8e71dd867f385dc9d53672ab9ce59ba58a7bf0e
Showing with 10 additions and 2 deletions.
  1. +1 −1 htdocs/lang/de/ocstyle/editcache.tpl.php
  2. +9 −1 htdocs/lib2/logic/picture.class.php
@@ -272,7 +272,7 @@ function toggleAttr(id)
{gc_com_msg2}</span>
</td></tr>
{gc_com_refs_end}
<tr><td colspan="2">&nbsp;</td></tr>
<tr><td colspan="2" id="pictures">&nbsp;</td></tr>

<tr>
<td class="header-small" colspan="2">
@@ -444,13 +444,21 @@ function allowEdit()
function getPageLink()
{
$pl = 'viewcache.php?cacheid=' . urlencode($this->getCacheId());
if ($this->getObjectType() == OBJECT_CACHELOG)
{
$pl = 'viewcache.php?cacheid=' . urlencode($this->getCacheId());
if (!$this->isVisibleOnCachePage())
$pl .= "&log=A";
$pl .= "#log" . urlencode($this->getLogId());
}
else if ($this->getObjectType() == OBJECT_CACHE)
{
$pl = 'editcache.php?cacheid=' . urlencode($this->getCacheId()) . '#pictures';
}
else
{
$pl = false;
}
return $pl;
}
/*

0 comments on commit f8e71dd

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