summaryrefslogtreecommitdiff
path: root/classes/pref/prefs.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-03-04 19:50:19 +0300
committerAndrew Dolgov <[email protected]>2021-03-04 19:50:19 +0300
commit476965b1611c45dac1e250365cbbfd03df78926f (patch)
treeed4ba1f28da5e00cd8ed69f25133a8e903d80c2e /classes/pref/prefs.php
parentf398fea414cc3a2598a0486aa7997f6655d02c0a (diff)
show installed plugins in the installer list
Diffstat (limited to 'classes/pref/prefs.php')
-rw-r--r--classes/pref/prefs.php12
1 files changed, 3 insertions, 9 deletions
diff --git a/classes/pref/prefs.php b/classes/pref/prefs.php
index 277334ac9..b15b403e8 100644
--- a/classes/pref/prefs.php
+++ b/classes/pref/prefs.php
@@ -1357,20 +1357,14 @@ class Pref_Prefs extends Handler_Protected {
}
}
- private function _get_available_plugins(array $installed = []) {
+ private function _get_available_plugins() {
if ($_SESSION["access_level"] >= 10 && Config::get(Config::ENABLE_PLUGIN_INSTALLER)) {
- $obj = json_decode(UrlHelper::fetch(['url' => 'https://tt-rss.org/plugins.json']), true);
-
- // TODO: filter installed, we'll need class names in the plugins.json
-
- return $obj;
+ return json_decode(UrlHelper::fetch(['url' => 'https://tt-rss.org/plugins.json']), true);
}
}
function getAvailablePlugins() {
- $installed = $_REQUEST['installed'];
-
if ($_SESSION["access_level"] >= 10) {
- print json_encode($this->_get_available_plugins($installed));
+ print json_encode($this->_get_available_plugins());
}
}