summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-03-03 14:17:55 +0300
committerAndrew Dolgov <[email protected]>2021-03-03 14:17:55 +0300
commit06cb181f7315b709d9d8ab926f7607f3227ad168 (patch)
treeb8530eb2a1541ab67b963b738beecba2d31dea2e
parent75e659ba65d30dec4b8debac01a3b65505eae711 (diff)
add update button for system plugins
-rw-r--r--classes/pref/prefs.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/classes/pref/prefs.php b/classes/pref/prefs.php
index 1c5092167..484f7734b 100644
--- a/classes/pref/prefs.php
+++ b/classes/pref/prefs.php
@@ -798,6 +798,15 @@ class Pref_Prefs extends Handler_Protected {
<input disabled='1' dojoType='dijit.form.CheckBox' <?= $is_checked ?> type='checkbox'><?= htmlspecialchars($about[1]) ?>
</label>
+ <?php if ($_SESSION["access_level"] >= 10) { ?>
+ <button style="display : none"
+ data-update-btn-for-plugin="<?= htmlspecialchars($name) ?>" dojoType='dijit.form.Button'
+ onclick='Helpers.Plugins.update("<?= htmlspecialchars($name) ?>")'>
+ <?= \Controls\icon("update") ?>
+ <?= __("Update") ?>
+ </button>
+ <?php } ?>
+
<?php if ($about[4] ?? false) { ?>
<button dojoType='dijit.form.Button' class='alt-info'
onclick='window.open("<?= htmlspecialchars($about[4]) ?>")'>