aboutsummaryrefslogtreecommitdiffstats
path: root/include/channel.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2020-10-23 09:28:49 +0000
committerMario <mario@mariovavti.com>2020-10-23 09:28:49 +0000
commit59fd3861a76bad8ac07592046401b3c27a5f3cb2 (patch)
treed6fc27194c89664ec5b0c7e8e40dfa3b9a1f2424 /include/channel.php
parent2772c335635aa5248a4509e0976432707b3e716e (diff)
downloadvolse-hubzilla-59fd3861a76bad8ac07592046401b3c27a5f3cb2.tar.gz
volse-hubzilla-59fd3861a76bad8ac07592046401b3c27a5f3cb2.tar.bz2
volse-hubzilla-59fd3861a76bad8ac07592046401b3c27a5f3cb2.zip
wrong extension
Diffstat (limited to 'include/channel.php')
-rw-r--r--include/channel.php8
1 files changed, 4 insertions, 4 deletions
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(