From 59fd3861a76bad8ac07592046401b3c27a5f3cb2 Mon Sep 17 00:00:00 2001 From: Mario Date: Fri, 23 Oct 2020 09:28:49 +0000 Subject: wrong extension --- include/channel.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'include/channel.php') diff --git a/include/channel.php b/include/channel.php index ae186d02f..bca09f1f3 100644 --- a/include/channel.php +++ b/include/channel.php @@ -2379,13 +2379,13 @@ function get_zcard($channel, $observer_hash = '', $args = array()) { intval($cover_size), intval(PHOTO_COVER) ); - +hz_syslog(); if($r) { $cover = $r[0]; $cover['href'] = z_root() . '/photo/' . $r[0]['resource_id'] . '-' . $r[0]['imgscale']; } else { $default_cover = get_config('system','default_cover_photo','bggenerator'); - $cover = [ 'href' => z_root() . '/images/default_cover_photos/' . $default_cover . '/' . $cover_width . '.jpg' ]; + $cover = [ 'href' => z_root() . '/images/default_cover_photos/' . $default_cover . '/' . $cover_width . '.png' ]; } $o .= replace_macros(get_markup_template('zcard.tpl'), array( @@ -2452,14 +2452,14 @@ function get_zcard_embed($channel, $observer_hash = '', $args = array()) { intval($cover_size), intval(PHOTO_COVER) ); - +hz_syslog(print_r($r,true)); if($r) { $cover = $r[0]; $cover['href'] = z_root() . '/photo/' . $r[0]['resource_id'] . '-' . $r[0]['imgscale']; } else { $default_cover = get_config('system','default_cover_photo','bggenerator'); - $cover = [ 'href' => z_root() . '/images/default_cover_photos/' . $default_cover . '/' . $cover_width . '.jpg' ]; + $cover = [ 'href' => z_root() . '/images/default_cover_photos/' . $default_cover . '/' . $cover_width . '.png' ]; } $o .= replace_macros(get_markup_template('zcard_embed.tpl'),array( -- cgit v1.2.3