From b74a724fb57a0b1fdb8a52a029fe0f1b4252d7bd Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Fri, 2 Dec 2022 00:55:43 +0100 Subject: [PATCH] better to use new behaviors names --- _public.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/_public.php b/_public.php index 27e0ce6..ff4405b 100644 --- a/_public.php +++ b/_public.php @@ -27,9 +27,9 @@ if (!$s->zoneclearFeedServer_active) { return null; } if (1 == $s->zoneclearFeedServer_bhv_pub_upd) { - dcCore::app()->addBehavior('publicBeforeDocument', ['zcfsPublicBehaviors', 'publicDocument']); + dcCore::app()->addBehavior('publicBeforeDocumentV2', ['zcfsPublicBehaviors', 'publicDocumentV2']); } elseif (2 == $s->zoneclearFeedServer_bhv_pub_upd) { - dcCore::app()->addBehavior('publicAfterDocument', ['zcfsPublicBehaviors', 'publicAfterDocument']); + dcCore::app()->addBehavior('publicAfterDocumentV2', ['zcfsPublicBehaviors', 'publicAfterDocumentV2']); } elseif (3 == $s->zoneclearFeedServer_bhv_pub_upd) { dcCore::app()->addBehavior('publicHeadContent', ['zcfsPublicBehaviors', 'publicHeadContent']); } @@ -94,7 +94,7 @@ class zcfsPublicBehaviors /** * Update feeds after contents. */ - public static function publicAfterDocument() + public static function publicAfterDocumentV2() { # Limit feeds update to home page et feed page # Like publishScheduledEntries @@ -108,7 +108,7 @@ class zcfsPublicBehaviors /** * Generic behavior for before and after public content. */ - public static function publicDocument() + public static function publicDocumentV2() { $zc = new zoneclearFeedServer(); $zc->checkFeedsUpdate();