Explorar o código

Merge pull request #1498 from marienfressinaud/fix/zip-update

fix: Fix update via ZIP archive
Alexandre Alapetite %!s(int64=9) %!d(string=hai) anos
pai
achega
d14cc25c15
Modificáronse 2 ficheiros con 2 adicións e 0 borrados
  1. 1 0
      CHANGELOG.md
  2. 1 0
      app/Controllers/updateController.php

+ 1 - 0
CHANGELOG.md

@@ -18,6 +18,7 @@
 		* (Require manual update for existing installations)
 	* Do not require PHP extension `fileinfo` for favicons [#1461](https://github.com/FreshRSS/FreshRSS/issues/1461)
 	* Fix UI lowest subscription popup hidden [#1479](https://github.com/FreshRSS/FreshRSS/issues/1479)
+	* Fix update system via ZIP archive [#1498](https://github.com/FreshRSS/FreshRSS/pull/1498)
 * I18n
 	* Improve English [#1465](https://github.com/FreshRSS/FreshRSS/pull/1465)
 * Misc.

+ 1 - 0
app/Controllers/updateController.php

@@ -190,6 +190,7 @@ class FreshRSS_update_Controller extends Minz_ActionController {
 			if (self::isGit()) {
 				$res = self::gitPull();
 			} else {
+				require(UPDATE_FILENAME);
 				if (Minz_Request::isPost()) {
 					save_info_update();
 				}