enabled external tool extensions in adminreports interface

This commit is contained in:
following
2013-04-12 23:10:14 +02:00
parent d5d30e1b20
commit 343d2e364a
2 changed files with 10 additions and 1 deletions

View File

@ -178,6 +178,10 @@
$tpl->assign('lastmodified', $record['lastmodified']);
$tpl->assign('cachename', $record['cachename']);
$tpl->assign('ownerid', $record['ownerid']);
if (isset($opt['logic']['adminreports']['cachexternal']))
$tpl->assign('cachexternal', $opt['logic']['adminreports']['cachexternal']);
else
$tpl->assign('cachexternal', array());
}
sql_free_result($rs);

View File

@ -53,7 +53,12 @@
<p style="line-height: 2.5m;">{t}(*) New reports{/t}</p>
{/if}
{else}
<p style="line-height: 1.6em;">{t}Details for report of {/t} <a href="viewcache.php?cacheid={$cacheid}" target="_blank">{$cachename|escape}</a> {t} by {/t} <a href="viewprofile.php?userid={$userid}" target="_blank">{$usernick|escape}</a></p>
<p style="line-height: 1.6em;">{t}Details for report of {/t} <a href="viewcache.php?cacheid={$cacheid}" target="_blank">{$cachename|escape}</a> {t} by {/t} <a href="viewprofile.php?userid={$userid}" target="_blank">{$usernick|escape}</a>
&nbsp; &nbsp; &nbsp;
{foreach from=$cachexternal key=extname item=exturl}
[<a href="{$exturl|replace:_cache_id_:$cacheid}" target="_blank">{$extname}</a>] &nbsp;
{/foreach}
</p>
{if $created != null}
<p style="line-height: 1.6em;"><b>{t}Created at{/t}:</b>&nbsp;{$created|date_format:$opt.format.datelong}</p>
{/if}