1
0
forked from HPR/hpr_generator

Fix file existence logic for get_avatar MACRO

Test for existence on filesystem
This commit is contained in:
2022-08-01 20:19:44 -04:00
parent d4e8422677
commit 83d9156f17
4 changed files with 8 additions and 5 deletions

View File

@@ -32,7 +32,7 @@
<!--% this_host = hosts.$id %-->
<h2 class="title">Correspondent</h2>
<h2><!--% this_host.host %--></h2>
<p><img src="./images/<!--% get_avatar(this_host.local_image, this_host.hostid) %-->"
<p><img src="./images/<!--% get_avatar(this_host.hostid) %-->"
height="80" alt="Host Image" /><br>
<label>Host ID</label>: <!--% this_host.hostid %--><br><br>
<label>email:</label> <u><!--% this_host.email %--></u><br>