X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/26a71f36c68773b18095911e99be7294cbd66f39..8b72f09d216106edc22fc484af5943d007c6bedf:/common.inc.plp diff --git a/common.inc.plp b/common.inc.plp index 2976cbe..6295de7 100644 --- a/common.inc.plp +++ b/common.inc.plp @@ -147,6 +147,14 @@ sub Html { '', ); + if (my $img = $meta->{image}) { + my $proto = sprintf('http%s://', !!$ENV{HTTPS} && 's'); + my $url = "$proto$ENV{HTTP_HOST}/$img"; + push @{ $meta->{raw} }, ( + qq(), + ); + } + my ($file) = $ENV{SCRIPT_FILENAME} =~ m{ ([^/]+) \.plp$ }x; PLP_START {