aboutsummaryrefslogtreecommitdiff
path: root/app/Controllers/updateController.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2017-02-24 22:46:47 +0100
committerGravatar GitHub <noreply@github.com> 2017-02-24 22:46:47 +0100
commit686311463b2bf82405d0d113469dab62a0980532 (patch)
tree6bbcd254ff9b8daedec9e585b11b2138e4501dbb /app/Controllers/updateController.php
parent9f95783517c49e0c100646113b13d78053710b7b (diff)
parent9e931d1bc52443aeaf9ccf7e2b3d6eaa135368ec (diff)
Merge pull request #1436 from dswd/disable-update
Add config option to disable and hide self-update
Diffstat (limited to 'app/Controllers/updateController.php')
-rw-r--r--app/Controllers/updateController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Controllers/updateController.php b/app/Controllers/updateController.php
index 8f939dbdb..b4e8a0bff 100644
--- a/app/Controllers/updateController.php
+++ b/app/Controllers/updateController.php
@@ -162,7 +162,7 @@ class FreshRSS_update_Controller extends Minz_ActionController {
}
public function applyAction() {
- if (!file_exists(UPDATE_FILENAME) || !is_writable(FRESHRSS_PATH)) {
+ if (!file_exists(UPDATE_FILENAME) || !is_writable(FRESHRSS_PATH) || Minz_Configuration::get('system')->disable_update) {
Minz_Request::forward(array('c' => 'update'), true);
}