Add config option to disable and hide self-update

This commit is contained in:
Dennis Schwerdel committed 2017-02-23 21:22:56 +01:00
1 parent 5f637bd816
commit 59d6f3593c
4 files changed
+8 -1

No files matched your search

+1 -1
View File
@@ -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);
}