summaryrefslogtreecommitdiff
path: root/classes/Handler_Public.php
diff options
context:
space:
mode:
authorAndrew Dolgov <fox@fakecake.org>2024-11-19 16:46:48 +0000
committerAndrew Dolgov <fox@fakecake.org>2024-11-19 16:46:48 +0000
commit4bdd926a1c6238fe49cc3a8b26e7ce1539ebb764 (patch)
tree19deb331e4204003b11b88cc2f1e98cc2440b402 /classes/Handler_Public.php
parent394d606fe977a331f733c62e5509469c2eb3ef31 (diff)
parent154abc61a0f81bee7757fc57e594f3f4bccc0fdf (diff)
Merge branch 'feature/replace-get_pref-and-set_pref' into 'master'
Eliminate use of deprecated 'get_pref()' and 'set_pref()'. See merge request tt-rss/tt-rss!75
Diffstat (limited to 'classes/Handler_Public.php')
-rw-r--r--classes/Handler_Public.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/classes/Handler_Public.php b/classes/Handler_Public.php
index 518dcad05..efa26646b 100644
--- a/classes/Handler_Public.php
+++ b/classes/Handler_Public.php
@@ -42,8 +42,9 @@ class Handler_Public extends Handler {
);
if (!$is_cat && is_numeric($feed) && $feed < PLUGIN_FEED_BASE_INDEX && $feed > LABEL_BASE_INDEX) {
-
- $user_plugins = get_pref(Prefs::_ENABLED_PLUGINS, $owner_uid);
+ // TODO: _ENABLED_PLUGINS is profile-specific, so use of the default profile's plugins here should
+ // be called out in the docs, and/or access key stuff (see 'rss()') should also consider the profile
+ $user_plugins = Prefs::get(Prefs::_ENABLED_PLUGINS, $owner_uid);
$tmppluginhost = new PluginHost();
$tmppluginhost->load(Config::get(Config::PLUGINS), PluginHost::KIND_ALL);