summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-02-27 17:35:00 +0300
committerAndrew Dolgov <[email protected]>2021-02-27 17:35:00 +0300
commit85f411d6881639e3034d70635ce3ea6871fa748b (patch)
tree8ca21a5c65edb293d5b0654beb045aabeb240ad1
parent15f9cb708ef7140f6e40993ee0ffbd78d248842f (diff)
don't try to update all plugins
-rw-r--r--classes/pref/prefs.php5
-rw-r--r--js/PrefHelpers.js2
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 = {
</ul>
<footer class="text-center">
- ${App.FormFields.submit_tag(__("Close this window"))}
+ ${App.FormFields.submit_tag(__("Reload preferences"))}
</footer>
`,
});