forked from HPR/hpr_generator
		
	Fix file existence logic for get_avatar MACRO
Test for existence on filesystem
This commit is contained in:
		| @@ -1,3 +1,5 @@ | ||||
| <!--% MACRO get_avatar(has_avatar, host_id) BLOCK  %--> | ||||
| <!--% IF has_avatar == 0 %-->hpr_logo.png<!--% ELSE %-->hosts/<!--% host_id %-->.png<!--% END %--> | ||||
| <!--% MACRO get_avatar(host_id) BLOCK  %--> | ||||
| <!--% TRY %--> | ||||
| <!--% USE File ("./public_html/images/hosts/${host_id}.png") %-->hosts/<!--% File.name %--> | ||||
| <!--% CATCH File %-->hpr_logo.png<!--% END %--> | ||||
| <!--% END %--> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user