mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-05-18 13:24:37 -04:00
Add config option to disable and hide self-update
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user