Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
constants.' (#104) from wn/tt-rss:feature/special-feed-and-cat-consts into master
Reviewed-on: https://dev.tt-rss.org/tt-rss/tt-rss/pulls/104
|
|
|
|
PHPStan had trouble recognizing that ['items'] might have elements added.
|
|
PHPStan flagged the 'count()' below this with: Comparison operation '>' between 0 and 0 is always false.
|
|
wrapper functions and document them for posterity
|
|
|
|
- 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()
|
|
fb4bc2615e3910e8a7d15c6306e10247f7f80f4b incorrectly excluded feeds using the default update interval. This change ignores the unlikely scenario where someone has the default update interval set to 'disabled'.
|
|
errors.
This excludes feeds that had errors and currently have updating disabled (e.g. disabled due to the site being down for a while, getting compromised, etc.).
Disabled / non-updating feeds' error states are still visible when viewed in the feed tree.
|
|
* DiskCache: use singleton pattern to create less cache object instances
* DiskCache: implement ETag
|
|
This ensures all uses of the self URL get the same normalized/sanitized value.
|
|
|
|
https://wiki.php.net/rfc/deprecate_dollar_brace_string_interpolation
|
|
|
|
|
|
various places.
This isn't supported for arrays with string keys until PHP 8.1.
https://wiki.php.net/rfc/spread_operator_for_array
|
|
|
|
|
|
|
|
If I enabled some user plugins via Preferences -> Plugins and then
disabled all of them, an error occurred:
Jul 16 22:34:20 php[100]: PHP Fatal error: Uncaught TypeError: array_filter(): Argument #1 ($array) must be of type array, null given in /usr/share/webapps/tt-rss/classes/pref/prefs.php:1027
Jul 16 22:34:20 php[100]: Stack trace:
Jul 16 22:34:20 php[100]: #0 /usr/share/webapps/tt-rss/classes/pref/prefs.php(1027): array_filter()
Jul 16 22:34:20 php[100]: #1 /usr/share/webapps/tt-rss/backend.php(136): Pref_Prefs->setplugins()
Jul 16 22:34:20 php[100]: #2 {main}
Jul 16 22:34:20 php[100]: thrown in /usr/share/webapps/tt-rss/classes/pref/prefs.php on line 1027
Apparently the issue was elevated from a warning to an error in PHP 8.0
[1].
[1] https://php.watch/versions/8.0/internal-function-exceptions
|
|
|
|
|
|
feeds, etc.) to FilterTree class
|
|
|
|
|
|
Cherry-picked from https://git-gitea.tt-rss.org/fox/tt-rss/pulls/56,
while excluding changes in vendor/ (causes compatiblity issues with
PHP<8 [1]) and strftime-related ones (already re-applied in
https://git-gitea.tt-rss.org/fox/tt-rss/pulls/66).
[1] https://community.tt-rss.org/t/support-for-php-8-1/5089/9
|
|
getFeedUnread()
|
|
* mark several symbols as @deprecated properly
* replace uses of (deprecated) getFeedUnread() with Feeds::_get_counters()
|
|
* add filter action to ignore feed-provided tags
* simplify handling of various filter-provided tags
* bump schema to 146
|
|
|
|
This reverts commit 14027ae04e4aee6cf1c3a4ff9a390ec266c0fb09.
|
|
|
|
|
|
|
|
|
|
|
|
Also update 'select_hash' and 'select_tag' values param, which can have int or string keys.
|
|
|
|
|
|
* arguably better hack for incompatible plugins causing E_COMPILE_ERROR
|
|
|
|
|
|
|
|
|
|
- read only - can't subscribe to more feeds, feed updates are skipped
- disabled - can't login
define used access levels as UserHelper constants and refactor code to
use them instead of hardcoded numbers
|
|
------ -------------------------------
Line classes/pref/users.php
------ -------------------------------
170 If condition is always false.
------ -------------------------------
|
|
------ ------------------------------------------------
Line classes/pref/prefs.php
------ ------------------------------------------------
1328 Expression on left side of ?? is not nullable.
------ ------------------------------------------------
|