aboutsummaryrefslogtreecommitdiff
path: root/app/Controllers/updateController.php
diff options
context:
space:
mode:
authorGravatar Dennis Schwerdel <schwerdel@googlemail.com> 2017-02-23 21:22:56 +0100
committerGravatar Dennis Schwerdel <schwerdel@googlemail.com> 2017-02-23 21:22:56 +0100
commit59d6f3593cb1dead402813207ab8d860ea684ddc (patch)
tree62e8fa98735fb2882b0bf81795ed4280bba121df /app/Controllers/updateController.php
parent5f637bd816b7323885bfe1751a1724ee59a822f6 (diff)
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);
}