From 8282beef7ab3b6a65d6df5df93a533dbe9150d58 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Wed, 3 Nov 2021 01:31:17 +0100 Subject: [PATCH] fix feeds contents --- _public.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/_public.php b/_public.php index c9b8dcd..be7d401 100644 --- a/_public.php +++ b/_public.php @@ -195,7 +195,7 @@ class tplCinecturlink2 public static function c2PageFeedID($a) { - return 'urn:md5:blog->blog_id."cinecturlink2"); ?>'; + return 'urn:md5:blog->id."cinecturlink2"); ?>'; } public static function c2PageDescription($a) @@ -304,7 +304,7 @@ class tplCinecturlink2 public static function c2EntryFeedID($a) { - return 'urn:md5:c2_entries->blog_id.$_ctx->c2_entries->link_id.$_ctx->c2_entries->link_dt); ?>'; + return 'urn:md5:c2_entries->blog_id.$_ctx->c2_entries->link_id.$_ctx->c2_entries->link_creadt); ?>'; } public static function c2EntryID($a) @@ -404,9 +404,9 @@ class tplCinecturlink2 $format = !empty($a['format']) ? addslashes($a['format']) : ''; 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'])) { - $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) { $p = "dt::dt2str('" . $format . "', \$_ctx->c2_entries->link_creadt)"; } else { @@ -512,7 +512,7 @@ class tplCinecturlink2 public static function c2CategoryFeedID($a) { - return 'urn:md5:blog->blog_id."cinecturlink2".$_ctx->c2_categories->cat_id); ?>'; + return 'urn:md5:blog->id."cinecturlink2".$_ctx->c2_categories->cat_id); ?>'; } public static function c2CategoryID($a)