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
Andrew Dolgov
ddb6f4316c
enable Belarusian translation (proper UI label pending)
2022-04-18 10:49:18 +03:00
Andrew Dolgov
77f39d65b5
* Feeds::_get_counters - fix retrieving unread for tags
...
* mark several symbols as @deprecated properly
* replace uses of (deprecated) getFeedUnread() with Feeds::_get_counters()
2022-02-20 11:04:40 +03:00
Andrew Dolgov
a109e89983
mark clean() return value as nullable
2021-11-23 17:01:08 +03:00
Andrew Dolgov
7cfc30ac25
format_backtrace: revise previous to only try truncating/adding actual strings
2021-11-20 16:15:10 +03:00
Andrew Dolgov
3323ae78ce
* sql_bool_to_bool: make parameter nullable
...
* errorhandler: don't try to truncate null strings
* UrlHelper::rewrite_relative: fix undefined offset warnings for URLs
that lack schema/host (data: etc)
2021-11-20 16:11:44 +03:00
wn_
8f749fe61b
Address PHPStan warnings in 'include/colors.php'.
...
Also some formatting for readability.
2021-11-14 21:06:06 +00:00
wn_
abab2a94e8
Address PHPStan warning in 'classes/pref/prefs.php'.
...
Also update 'select_hash' and 'select_tag' values param, which can have int or string keys.
2021-11-14 20:13:09 +00:00
wn_
cc220058e0
Address PHPStan warnings in 'include/functions.php'.
2021-11-11 21:37:34 +00:00
wn_
00b86bac39
Address PHPStan warnings in 'include/errorhandler.php'.
2021-11-11 20:47:29 +00:00
wn_
e4b8e2d063
Address PHPStan warnings in 'include/controls_compat.php'.
2021-11-11 20:47:20 +00:00