diff options
| author | 2017-02-24 22:46:47 +0100 | |
|---|---|---|
| committer | 2017-02-24 22:46:47 +0100 | |
| commit | 686311463b2bf82405d0d113469dab62a0980532 (patch) | |
| tree | 6bbcd254ff9b8daedec9e585b11b2138e4501dbb /app/Controllers/updateController.php | |
| parent | 9f95783517c49e0c100646113b13d78053710b7b (diff) | |
| parent | 9e931d1bc52443aeaf9ccf7e2b3d6eaa135368ec (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.php | 2 |
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); } |
