Litlle improvements (update system)

- Check UPDATE_FILENAME exists before applying update
- Add empty line at the end of files
This commit is contained in:
Marien Fressinaud committed 2014-08-10 11:52:18 +02:00
1 parent 9a5d6245fb
commit 3ca8c7ec4c
2 files changed
+7 -2

No files matched your search

+6 -1
View File
@@ -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 {
}
}
}
}
}
+1 -1
View File
@@ -6,4 +6,4 @@
<h1><?php echo _t('update_system'); ?></h1>
<?php ask_info_update(); ?>
</div>
</div>