From 85f411d6881639e3034d70635ce3ea6871fa748b Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 27 Feb 2021 17:35:00 +0300 Subject: [PATCH] don't try to update all plugins --- classes/pref/prefs.php | 5 ++++- js/PrefHelpers.js | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/classes/pref/prefs.php b/classes/pref/prefs.php index 3bdcebebc..ad2fba5d4 100644 --- a/classes/pref/prefs.php +++ b/classes/pref/prefs.php @@ -1191,7 +1191,10 @@ class Pref_Prefs extends Handler_Protected { if (is_dir("$dir/.git")) { $plugin_name = basename($dir); - array_push($rv, ["plugin" => $plugin_name, "rv" => $this->_update_plugin($root_dir, $plugin_name)]); + $test = $this->_plugin_needs_update($root_dir, $plugin_name); + + if (!empty($test["o"])) + array_push($rv, ["plugin" => $plugin_name, "rv" => $this->_update_plugin($root_dir, $plugin_name)]); } } } diff --git a/js/PrefHelpers.js b/js/PrefHelpers.js index 7d5cae603..efb6a2a89 100644 --- a/js/PrefHelpers.js +++ b/js/PrefHelpers.js @@ -339,7 +339,7 @@ const Helpers = { `, });