diff options
| author | wn_ <invalid@email.com> | 2024-11-17 22:14:08 +0000 |
|---|---|---|
| committer | wn_ <invalid@email.com> | 2024-11-18 21:59:45 +0000 |
| commit | 154abc61a0f81bee7757fc57e594f3f4bccc0fdf (patch) | |
| tree | 19deb331e4204003b11b88cc2f1e98cc2440b402 /classes/Handler_Public.php | |
| parent | 394d606fe977a331f733c62e5509469c2eb3ef31 (diff) | |
Eliminate use of deprecated 'get_pref()' and 'set_pref()'.
Diffstat (limited to 'classes/Handler_Public.php')
| -rw-r--r-- | classes/Handler_Public.php | 5 |
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); |