mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-04-04 06:35:40 -04:00
Litlle improvements (update system)
- Check UPDATE_FILENAME exists before applying update - Add empty line at the end of files
This commit is contained in:
@@ -79,10 +79,15 @@ class FreshRSS_update_Controller extends Minz_ActionController {
|
||||
'body' => _t('update_server_not_found', FRESHRSS_UPDATE_WEBSITE)
|
||||
);
|
||||
}
|
||||
|
||||
curl_close($c);
|
||||
}
|
||||
|
||||
public function applyAction() {
|
||||
if (!file_exists(UPDATE_FILENAME)) {
|
||||
Minz_Request::forward(array('c' => 'update'), true);
|
||||
}
|
||||
|
||||
require(UPDATE_FILENAME);
|
||||
|
||||
if (Minz_Request::isPost()) {
|
||||
@@ -113,4 +118,4 @@ class FreshRSS_update_Controller extends Minz_ActionController {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user