Commit Graph

158 Commits

Author SHA1 Message Date
Alexandre Alapetite 9c104ee6bb
Prepare next dev version 2023-12-30 17:29:27 +01:00
Alexandre Alapetite 227233b4ef
Release 1.23.1 2023-12-30 17:17:00 +01:00
Alexandre Alapetite 941b370fe5
Start 1.23.1-dev 2023-12-24 11:37:36 +01:00
Alexandre Alapetite a67c11c52d
Release 1.23.0 2023-12-24 11:22:44 +01:00
Luc SANCHEZ 30c7a61a9b
Use strict_types (#5830)
* Little's optimisations and booleans in conditions

* Apply strict type

* Apply strict type

* Apply strict type

* Fix multiple bugs with PHP 8.2 and 8.3

* Many declares missing, more errors fixed

* Apply strict type

* Another approach

* Stronger typing for Minz_Session

* Fix case of SQLite

---------

Co-authored-by: Luc <sanchezluc+freshrss@gmail.com>
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
2023-11-16 22:43:00 +01:00
Alexandre Alapetite 06d0099504
Require PHP 7.4+ (#5720)
* Require PHP 7.4+
https://github.com/FreshRSS/FreshRSS/discussions/5474

* Update Docker oldest
Alpine 3.13 with PHP 7.4.26

* Add missing packets to Docker oldest

* Update to typed properties
https://php.net/migration74.new-features#migration74.new-features.core.typed-properties

* More types
2023-10-30 20:47:27 +01:00
Alexandre Alapetite d50bb386e7
Start next version 1.22.2-dev 2023-10-30 20:03:15 +01:00
Alexandre Alapetite cc2878aed8
Release 1.22.1 2023-10-30 19:48:26 +01:00
Alexandre Alapetite 29f3a41d12
Start next version 1.22.1-dev 2023-10-23 23:12:02 +02:00
Alexandre Alapetite a2588fea22
Release 1.22.0 2023-10-23 22:38:59 +02:00
Alexandre Alapetite 0292b2f1f3
Improve Dev Container (#5423)
* Improve Dev Container
PHPStan was failing in Dev Container

* Update Docker to Alpine Linux 3.18
* New DATA_PATH environment variable

* README
2023-05-28 18:03:34 +02:00
Luc SANCHEZ 5f898dcc5e
Modernize Constants and use new constant for string 'currentUser' (#5089)
* Modernize Constants and use new constant 'currentUser'

* Add FreshRSS_Context::currentUser() function and use

* Add FreshRSS_Context::currentUser() function and use

* Add FreshRSS_Context::currentUser() function and use

* Add FreshRSS_Context::currentUser() function and use

* Add FreshRSS_Context::currentUser() function and use

* Update app/Controllers/userController.php

* Update app/Controllers/userController.php

* Update app/Controllers/userController.php

* Update app/Models/Auth.php

* Update p/api/greader.php

* Update p/api/greader.php

* Update p/api/greader.php

* Update app/Models/Context.php

* Update app/Models/LogDAO.php

* Update lib/Minz/Log.php

* Update p/api/greader.php

* Update app/layout/header.phtml

* Update app/views/helpers/export/articles.phtml

* Update cli/do-install.php

* Remarque's from Alkarex

* Remarque's from Alkarex

* Refactor using new Minz_User class

* Consistent naming of public constants

---------

Co-authored-by: Luc <sanchezluc+freshrss@gmail.com>
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
2023-03-26 14:17:22 +02:00
maTh e679d3df0e
Improved: show Terms of Service in config menu (#5215)
* Use constants for path to TOS

* improve comments

* TOS title moved to template

* TOS available via config menu

* CSS: improve handling of content of TOS/about

* give info about set/unset TOS in system config

* fix target

* i18n FR

* i18n DE
2023-03-21 18:47:07 +01:00
maTh a7e1428485
defined('CLEANCACHE_HOURS') (#5144)
https://github.com/FreshRSS/FreshRSS/issues/4627
2023-03-04 13:46:46 +01:00
Alexandre Alapetite b5969494f9
Start FreshRSS 1.21.1-dev 2023-03-04 13:43:53 +01:00
Alexandre Alapetite de062c88ea
Release FreshRSS 1.21.0 2023-03-04 12:55:43 +01:00
Alexandre Alapetite f5bf654b1e
Resume 1.21.0-dev 2022-12-09 23:10:15 +01:00
Alexandre Alapetite 45fb0d6803
Security release FreshRSS 1.20.2 2022-12-08 10:51:08 +01:00
Alexandre Alapetite 570503b7f1
Require PHP 7.2+ (#4848)
Drop PHP 7.0- as planned https://github.com/FreshRSS/FreshRSS/discussions/3321#discussioncomment-835704
2022-11-14 15:02:44 +01:00
Alexandre Alapetite 37cc854d12
Start FreshRSS 1.21.0-dev 2022-11-14 14:32:44 +01:00
Alexandre Alapetite 5035dadfdd
Release FreshRSS 1.20.1 2022-11-14 14:20:01 +01:00
Alexis Degrugillier 1f4e347cae
Add tests on i18n classes (#4756) 2022-10-20 23:42:47 +02:00
Alexandre Alapetite 945fde6192
Start 1.20.1-dev 2022-09-10 17:19:32 +02:00
Alexandre Alapetite 812e65447b
Release FreshRSS 1.20.0 2022-09-10 16:55:41 +02:00
maTh 4214954ea1
Improved: error page (#4465)
* error page: true HTML page

* error page: http500 erorr

* error page: add CSP header

* 'log.txt' replaced by LOG_FILENAME

* use ADMIN_LOG

* log.txt => LOG_FILENAME

* error message: add <title>

* Docs created

* delete: documentation on error message page

* line break added

* added: new line at the end

* typo fixed

* Update lib/lib_rss.php

Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>

* Update lib/lib_rss.php

Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>

* Minz HTTP 500

Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
2022-08-21 22:44:03 +02:00
Alexandre Alapetite 60d96652dd
Start 1.20.0-dev 2022-02-04 15:38:41 +01:00
Alexandre Alapetite 67aea86bae
Release 1.19.2 2022-02-04 15:24:37 +01:00
Alexandre Alapetite 0988b0c2be
Start 1.19.2-dev 2022-01-02 19:16:39 +01:00
Alexandre Alapetite 6fa5672800
Release 1.19.1 2022-01-02 18:57:48 +01:00
Alexandre Alapetite afb3035bc6
Start 1.19.1-dev 2021-12-31 13:08:49 +01:00
Alexandre Alapetite 890405b2a0
Release FreshRSS 1.19.0
https://github.com/FreshRSS/FreshRSS/issues/4093
2021-12-31 12:49:43 +01:00
Alexandre Alapetite 483b6eb333
Drop PHP5 and IE11 (#3666)
* Drop PHP5 and IE11
https://github.com/FreshRSS/FreshRSS/discussions/3321
Our Docker :oldest is now based on Alpine 3.5 (2016-12-22)

* More uniform

* More changelog
2021-06-07 17:53:47 +02:00
Alexandre Alapetite e02d1cd311 Next release will not be minor
We already know it will be more than 1.18.2 and therefore 1.19.0 instead
2021-06-07 17:44:23 +02:00
Alexandre Alapetite 32d25875cd Start next version 1.18.2-dev 2021-06-07 16:42:17 +02:00
Alexandre Alapetite c785cdfb00 Release 1.18.1 2021-06-06 22:54:48 +02:00
Alexandre Alapetite f39cbe236d
Friendly syntax for Intellisense (#3577)
Dynamic code declaration is not well detected, especially for constants, so change to more standard syntax, which is correctly detected by Intellisense / Intelephense.

Furthermore, thins custom `safe_define()` function has been confusing for some users, e.g. https://github.com/FreshRSS/FreshRSS/issues/2723#issuecomment-753318513
2021-04-08 22:23:33 +02:00
Alexandre Alapetite b3340c32e3 Prepare 1.18.1-dev 2021-03-15 00:08:21 +01:00
Alexandre Alapetite 769f34e958 Release 1.18.0 2021-03-14 18:45:12 +01:00
Alexis Degrugillier 29fe125b4a
Add constant for PHP requirements (#3369)
* Add constant for PHP requirements

This new constant is used for PHP version check.
This way, we won't forget to modify some part of the code base.

* Remove PHP version checks

Some checks were obsolete because they were checking unsupported
PHP versions.
2021-01-14 23:28:45 +01:00
Alexandre Alapetite 46e6340cc1 Start 1.17.1-dev 2020-09-24 10:13:05 +02:00
Alexandre Alapetite ef5199eaad Release FreshRSS 1.17.0
https://github.com/FreshRSS/FreshRSS/issues/3181
2020-09-22 18:45:01 +02:00
Marien Fressinaud 8619cf6fa6
Add a migration system (#2760)
* Add a Minz_Migrator class

Until now, we updated the database structure somewhere in the code but
it wasn't always consistent and somehow complicated to find. Also, this
code was always checked for nothing.

The Migrator aims to improve and ease the creation of migrations. It
should improve the way we apply the updates, making the update server
almost useless.

References:

- example of migration (before Migrator): cc0db9af4f (diff-11a53443fa81512b128c66b065df0679R10)
- update server: https://github.com/FreshRSS/update.freshrss.org
- PR moving the code of the update server to the core: https://github.com/FreshRSS/FreshRSS/pull/1760

* Automatically apply migrations

For now, administrators are used to have nothing to do during an update
else than getting the new code. I suggest to keep this behaviour and
automatically apply migrations if we detect new ones.

Another solution would be to create a CLI command and ask admins to call
it after getting the new code. It could hide migrations errors to end
users, but admin can forget to apply migrations since there are not used
to it.

* Add documentation for Minz Migrator

* Execute migrations even if next ones are applied

* Change mechanism to prevent multiple update at once

* Use mkdir to create the lock and to test it exists

Reference: https://stackoverflow.com/a/731634

* Append .lock to applied_migrations_path

There are no needs to define another file to serve as a lock.

* Change migrations naming convention

* Apply suggestions from code review

Co-Authored-By: Alexandre Alapetite <alexandre@alapetite.fr>

* Perform a low-cost migration versions comparaison

* Clarify version numbers concerning the migration system

Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
2020-07-08 12:11:55 +02:00
Alexandre Alapetite 0ddb4b7383 Start 1.16.3-dev 2020-05-31 22:32:13 +02:00
Alexandre Alapetite 38802f6fbc Release FreshRSS 1.16.2 2020-05-31 21:11:48 +02:00
Alexandre Alapetite 5910009c21 Start next version 1.16.2-dev 2020-05-30 19:40:03 +02:00
Alexandre Alapetite 1b85fa7145 Release FreshRSS 1.16.1 2020-05-30 15:12:24 +02:00
Alexandre Alapetite de882dad43 Start 1.16.1-dev 2020-04-09 14:03:12 +02:00
Alexandre Alapetite 1821266035 Release 1.16.0
https://github.com/FreshRSS/FreshRSS/issues/2871
2020-04-09 12:30:16 +02:00
Alexandre Alapetite cd49e9819b
New core-extensions to allow Docker volumes for third-party extensions (#2837)
* New core-extensions to allow Docker volumes for third-party extensions

#Fix https://github.com/FreshRSS/FreshRSS/issues/2650
Split our extensions directory into two:
1) Core extensions shipped with FreshRSS in ./lib/core-extensions/
2) Third-party extensions modified by end-users in ./extensions/ which
can easily be mounted as a Docker volume

* Example of Docker Compose with extensions

* Back-compatibility + fix array merge bug
2020-03-22 16:31:20 +01:00
Marien Fressinaud 61fb6f8b86 fix: Rename COPY_LOG_TO_STDERR in COPY_LOG_TO_SYSLOG
The constant was badly named. The bug was introduced in 3c49986ec,
probably because of a copy/paste.

There is no other occurrences of COPY_LOG_TO_STDERR in the code (checked
with `git grep`).
2019-12-22 18:46:09 +01:00