fix feeds contents

This commit is contained in:
Jean-Christian Paul Denis 2021-11-03 01:31:17 +01:00
parent 04a5c9b1f6
commit 8282beef7a
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951

View File

@ -195,7 +195,7 @@ class tplCinecturlink2
public static function c2PageFeedID($a) public static function c2PageFeedID($a)
{ {
return 'urn:md5:<?php echo md5($core->blog->blog_id."cinecturlink2"); ?>'; return 'urn:md5:<?php echo md5($core->blog->id."cinecturlink2"); ?>';
} }
public static function c2PageDescription($a) public static function c2PageDescription($a)
@ -304,7 +304,7 @@ class tplCinecturlink2
public static function c2EntryFeedID($a) public static function c2EntryFeedID($a)
{ {
return 'urn:md5:<?php echo md5($_ctx->c2_entries->blog_id.$_ctx->c2_entries->link_id.$_ctx->c2_entries->link_dt); ?>'; return 'urn:md5:<?php echo md5($_ctx->c2_entries->blog_id.$_ctx->c2_entries->link_id.$_ctx->c2_entries->link_creadt); ?>';
} }
public static function c2EntryID($a) public static function c2EntryID($a)
@ -404,9 +404,9 @@ class tplCinecturlink2
$format = !empty($a['format']) ? addslashes($a['format']) : ''; $format = !empty($a['format']) ? addslashes($a['format']) : '';
if (!empty($a['rfc822'])) { if (!empty($a['rfc822'])) {
$p = 'dt::rfc822(strtotime($_ctx->c2_entries->link_creadt), $_ctx->posts->post_tz)'; $p = 'dt::rfc822(strtotime($_ctx->c2_entries->link_creadt), $core->blog->settings->system->blog_timezone)';
} elseif (!empty($a['iso8601'])) { } elseif (!empty($a['iso8601'])) {
$p = 'dt::iso8601(strtotime($_ctx->c2_entries->link_creadt), $_ctx->posts->post_tz)'; $p = 'dt::iso8601(strtotime($_ctx->c2_entries->link_creadt), $core->blog->settings->system->blog_timezone)';
} elseif ($format) { } elseif ($format) {
$p = "dt::dt2str('" . $format . "', \$_ctx->c2_entries->link_creadt)"; $p = "dt::dt2str('" . $format . "', \$_ctx->c2_entries->link_creadt)";
} else { } else {
@ -512,7 +512,7 @@ class tplCinecturlink2
public static function c2CategoryFeedID($a) public static function c2CategoryFeedID($a)
{ {
return 'urn:md5:<?php echo md5($core->blog->blog_id."cinecturlink2".$_ctx->c2_categories->cat_id); ?>'; return 'urn:md5:<?php echo md5($core->blog->id."cinecturlink2".$_ctx->c2_categories->cat_id); ?>';
} }
public static function c2CategoryID($a) public static function c2CategoryID($a)