From 154a36700c80191121afec00b026daba5ff97dc8 Mon Sep 17 00:00:00 2001 From: maTh <1645099+math-GH@users.noreply.github.com> Date: Thu, 25 Apr 2024 08:28:42 +0200 Subject: Refactoring: Rename dotpath into dotnotation (#6369) * KIND_JSON_DOTPATH -> KIND_JSON_DOTNOTATION * TYPE_JSON_DOTPATH => TYPE_JSON_DOTNOTATION * json_dotpath => json_dotnotation * dotPathsForStandardJsonFeed => dotNotationForStandardJsonFeed * TYPE_JSON_DOTNOTATION = 'JSON+DotPath' => 'JSON+DotNotation' * documentation: OPML.md * convertJsonToRss() * $dotpaths => $dotnotations * FreshRSS_Feed_Exception * comment * Compatibility TYPE_JSON_DOTPATH --------- Co-authored-by: Alexandre Alapetite --- app/views/helpers/export/opml.phtml | 8 ++++---- app/views/helpers/feed/update.phtml | 6 +++--- app/views/subscription/add.phtml | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) (limited to 'app/views') diff --git a/app/views/helpers/export/opml.phtml b/app/views/helpers/export/opml.phtml index 0b53a1ce4..5a5ba5432 100644 --- a/app/views/helpers/export/opml.phtml +++ b/app/views/helpers/export/opml.phtml @@ -27,8 +27,8 @@ function feedsToOutlines(array $feeds, bool $excludeMutedFeeds = false): array { case FreshRSS_Feed::KIND_XML_XPATH: $outline['type'] = FreshRSS_Export_Service::TYPE_XML_XPATH; break; - case FreshRSS_Feed::KIND_JSON_DOTPATH: - $outline['type'] = FreshRSS_Export_Service::TYPE_JSON_DOTPATH; + case FreshRSS_Feed::KIND_JSON_DOTNOTATION: + $outline['type'] = FreshRSS_Export_Service::TYPE_JSON_DOTNOTATION; break; case FreshRSS_Feed::KIND_JSONFEED: $outline['type'] = FreshRSS_Export_Service::TYPE_JSONFEED; @@ -48,9 +48,9 @@ function feedsToOutlines(array $feeds, bool $excludeMutedFeeds = false): array { $outline['frss:xPathItemThumbnail'] = $xPathSettings['itemThumbnail'] ?? null; $outline['frss:xPathItemCategories'] = $xPathSettings['itemCategories'] ?? null; $outline['frss:xPathItemUid'] = $xPathSettings['itemUid'] ?? null; - } elseif ($feed->kind() === FreshRSS_Feed::KIND_JSON_DOTPATH) { + } elseif ($feed->kind() === FreshRSS_Feed::KIND_JSON_DOTNOTATION) { /** @var array */ - $jsonSettings = $feed->attributeArray('json_dotpath') ?? []; + $jsonSettings = $feed->attributeArray('json_dotnotation') ?? []; $outline['frss:jsonItem'] = $jsonSettings['item'] ?? null; $outline['frss:jsonItemTitle'] = $jsonSettings['itemTitle'] ?? null; $outline['frss:jsonItemContent'] = $jsonSettings['itemContent'] ?? null; diff --git a/app/views/helpers/feed/update.phtml b/app/views/helpers/feed/update.phtml index 5c88466a0..125e28253 100644 --- a/app/views/helpers/feed/update.phtml +++ b/app/views/helpers/feed/update.phtml @@ -413,7 +413,7 @@ - + @@ -514,9 +514,9 @@ -
+
feed->attributeArray('json_dotpath') ?? []); + $jsonSettings = Minz_Helper::htmlspecialchars_utf8($this->feed->attributeArray('json_dotnotation') ?? []); ?>

diff --git a/app/views/subscription/add.phtml b/app/views/subscription/add.phtml index 17542c9a4..f4651f52b 100644 --- a/app/views/subscription/add.phtml +++ b/app/views/subscription/add.phtml @@ -72,7 +72,7 @@ - +
@@ -166,7 +166,7 @@
-
+