From 85f411d6881639e3034d70635ce3ea6871fa748b Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 27 Feb 2021 17:35:00 +0300 Subject: don't try to update all plugins --- classes/pref/prefs.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'classes') 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)]); } } } -- cgit v1.2.3-54-g00ecf