Commit Graph

1652 Commits

Author SHA1 Message Date
Andrew Dolgov
8eb340c3ca make default light/dark themes configurable, add support for main application and login form 2025-08-01 17:22:21 +03:00
Andrew Dolgov
b0dc82dc7e only exit with nonzero exit code if there was an error 2025-07-04 13:22:06 +03:00
Andrew Dolgov
c1542671c1 return nonzero exit code when fatal error is triggered in on a CLI SAPI 2025-07-04 13:17:25 +03:00
wn_
df28c71641 Improve naming when working with filter actions.
Also updated some related typing and documentation.
2025-05-21 18:34:16 +00:00
wn_
2fa54cc627 Deprecate and remove use of the 'SUBSTRING_FOR_DATE' constant.
With MySQL support removed (b154bc7a10) this constant is unnecessary.
2025-05-18 14:26:05 +00:00
wn_
0acaac7115 Remove an outdated check for 'E_DEPRECATED' existence. 2025-05-18 14:09:27 +00:00
Andrew Dolgov
01159fa6f8 error handler - dump caught exception/fatal error to debug log if running under CLI SAPI 2025-05-03 08:18:16 +03:00
wn
4ae17d0f1c Merge branch 'feature/phpstan-updates' into 'master'
PHPStan update and addressing findings

See merge request tt-rss/tt-rss!122
2025-04-30 16:34:52 +00:00
wn_
0961c8bd4c Remove a PHPStan ignore related to PHP < 8 2025-04-27 14:39:06 +00:00
Andrew Dolgov
b154bc7a10 initial attempt to remove mysql-related stuff from tt-rss 2025-04-14 12:59:00 +03:00
Andrew Dolgov
c1e6a5ff63 enable ta translation 2025-03-26 09:40:54 +03:00
Andrew Dolgov
d373c1f978 add Config::DISABLE_LOGIN_FORM to allow limiting logins to SSO providers 2025-03-14 11:43:25 +03:00
Andrew Dolgov
e990a3c00f Merge branch 'feature/php-misc' into 'master'
More native typing, use some new PHP stuff

See merge request tt-rss/tt-rss!88
2024-12-16 06:29:28 +00:00
wn_
f9b2291c28 Don't bother passing unused arguments to 'TimeHelper::make_local_datetime()'.
There's no point in passing '$long' unless '$no_smart_dt' is set to 'true'.
2024-12-15 18:39:03 +00:00
wn_
1742fb65c5 Use the spread operator instead of 'array_merge' in more places.
PHP 8.1 introduced support for merging string-key arrays (last array with a wins).
2024-12-14 12:26:59 +00:00
wn_
667528d5b9 Use PHP 8 'str_' functions.
A few more characters in some places, but helps with readability.
2024-11-24 13:59:29 +00:00
wn_
abcd0e8ba2 Use native union types in most places. 2024-11-23 17:43:24 +00:00
Andrew Dolgov
c2d0c5a5c9 update usage of deprecated function 2024-11-23 15:59:53 +03:00
Andrew Dolgov
648024eb2e bump minimum required php version to 8.0 & remove some deprecated code 2024-11-23 15:54:40 +03:00
wn_
154abc61a0 Eliminate use of deprecated 'get_pref()' and 'set_pref()'. 2024-11-18 21:59:45 +00:00
wn_
a784305cc7 Address PHPStan findings as of 2.0.1 2024-11-12 03:15:53 +00:00
wn_
d17f90b96f Fix some broken links and make minor wording tweaks. 2024-08-21 17:59:35 +00:00
wn_
9dd4102c7f Replace basic 'isset()' cases with the null coalescing operator. 2024-08-04 15:42:11 +00:00
wn_
44257b8016 Move side effects out of the 'Sessions' constructor. 2024-07-12 01:18:53 +00:00
wn_
c7cc3c92ba Add and use the 'Sessions' class. 2024-07-11 12:16:00 +00:00
wn_
acf3748621 Switch to the non-deprecated form of 'session_set_save_handler'.
As of PHP 8.4 the form with more than 2 arguments is deprecated.

This also does some initial work to make the functions behave closer to what SessionHandlerInterface describes.

* https://php.watch/versions/8.4/session_set_save_handler-alt-signature-deprecated
* https://wiki.php.net/rfc/deprecate_functions_with_overloaded_signatures
* https://www.php.net/manual/en/class.sessionhandlerinterface.php
2024-07-05 16:39:16 +00:00
Andrew Dolgov
cc51487f08 Merge branch 'master' into weblate-integration 2024-06-14 13:47:14 +03:00
wn_
16b89cc293 Move 'include/functions.php' require into Composer autoloader.
Autoloader regenerated with 'composer dump-autoload --optimize'.
2024-04-20 16:25:33 +00:00
wn_
de00a09538 Make implicit nullable parameters explicitly nullable.
This is to address a deprecation planned for PHP 8.4.

https://wiki.php.net/rfc/deprecate-implicitly-nullable-types
2024-03-26 16:43:39 +00:00
Andrew Dolgov
66db7dc0ac drop es_LA, move es_ES to es 2024-03-06 15:24:16 +03:00
Andrew Dolgov
81f3139992 add HOOK_VALIDATE_SESSION 2024-02-21 22:13:23 +03:00
Andrew Dolgov
283ad4ebea Merge branch 'feature/unused-var-cleanup' into 'master'
Clean up some unused variables.

See merge request tt-rss/tt-rss!19
2024-01-13 18:29:30 +00:00
Andrew Dolgov
bcdfedeb8a * mark get_pref/set_pref wrappers as deprecated
* add per-user preference for minimal score required for digest
2024-01-09 11:45:40 +03:00
wn_
8727fb3ba8 Clean up some unused variables.
This is essentially 1ccc0c8c1a without the renames and some other things related to Psalm.
2024-01-08 22:46:13 +00:00
wn_
c7e1caf223 Fix class names in some more places.
Related to the PSR-4 move via 865ecc8796
2023-10-26 15:01:43 +00:00
Andrew Dolgov
865ecc8796 move to psr-4 autoloader 2023-10-25 12:55:09 +03:00
Andrew Dolgov
7bba4ae558 remove startup checks for SELF_URL_PATH, rely on auto-detection instead 2023-10-22 12:19:05 +03:00
Andrew Dolgov
04c2fa9f15 Merge branch 'master' of git.tt-rss.org:tt-rss/tt-rss 2023-02-25 19:31:07 +03:00
Andrew Dolgov
4d825fa6a6 require PHP to have support for flock() 2023-02-25 19:30:41 +03:00
Chih-Hsuan Yen
40afee5d12 Fix calculating average color for *.ico
Currently colorPalette() always fails for *.ico due to a logic error.
It's a regression from 8f749fe61b.
2023-02-10 18:20:42 +08:00
Andrew Dolgov
c30b24d09f deal with type errors in batch feed editor properly, un-deprecate PDO wrapper functions and document them for posterity 2022-12-30 19:51:34 +03:00
Andrew Dolgov
a16acd65fc batch feed editor:
- fix some field changes not applying because of DB type errors
 - rework to use bound vars instead of sql query concatenation
deprecate: checkbox_to_sql_bool(), bool_to_sql_bool()
2022-12-30 19:07:15 +03:00
jmechnich
017bf9777f Return true in custom error handler for proper suppression 2022-10-10 14:56:28 +02:00
jmechnich
504d0afd35 Fix handling of suppressed errors 2022-10-01 10:28:36 +02:00
Andrew Dolgov
c0e77241d3 update gl translation label (2) 2022-08-22 19:10:06 +03:00
Andrew Dolgov
70f500bee9 update gl translation label 2022-08-22 19:08:59 +03:00
Andrew Dolgov
aca16a3448 enable gl translation (Galician) 2022-08-21 18:42:06 +03:00
wn_
c301053965 Use the null coalescing assignment operator in various places. 2022-08-12 18:21:38 +00:00
Andrew Dolgov
7c45b3f789 * add HOOK_LOGINFORM_ADDITIONAL_BUTTONS
* allow plugins to inject JS code into login form
2022-07-24 16:33:28 +03:00
Andrew Dolgov
b17b4a4b9e fix be locale label 2022-04-18 13:04:29 +03:00