summaryrefslogtreecommitdiff
path: root/classes/pref
AgeCommit message (Collapse)Author
2023-10-25move to psr-4 autoloaderAndrew Dolgov
2023-10-20stop calling spans scopesAndrew Dolgov
2023-10-20jaeger-client -> opentelemetryAndrew Dolgov
2023-10-04batch feed editor: don't try to save feed_url or title, those aren't in the ↵Andrew Dolgov
dialog
2023-10-04fix feed_language being unnecessarily quoted in batch feed editorAndrew Dolgov
2023-06-14disable app passwords in the UI if auth_internal is not loadedAndrew Dolgov
2023-04-09more tracingAndrew Dolgov
2023-04-09some tracer class fixes / unhardcode jaeger IPAndrew Dolgov
2023-04-09exp: jaeger tracingAndrew Dolgov
2023-03-07Merge pull request 'Replace special feed and category numbers with ↵fox
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
2023-03-05Replace special feed and category numbers with constants.wn_
2023-03-05Revert 7ed4fa4c1dbdd9df552cf6dd28907c6769911a0e and use @var instead.wn_
PHPStan had trouble recognizing that ['items'] might have elements added.
2023-03-05Tweak to appease PHPStan in 'Pref_Feeds::_makefeedtree()'.wn_
PHPStan flagged the 'count()' below this with: Comparison operation '>' between 0 and 0 is always false.
2022-12-30deal with type errors in batch feed editor properly, un-deprecate PDO ↵Andrew Dolgov
wrapper functions and document them for posterity
2022-12-30batch feed editor: silence some more php8.1 undefined field warningsAndrew Dolgov
2022-12-30batch feed editor:Andrew Dolgov
- 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-24Fix getting active feeds with errors.wn_
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'.
2022-12-21Only count updating (i.e. enabled) feeds when determining active feeds with ↵wn_
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.
2022-12-19 * bring back cache-busting for feed icons based on timestampAndrew Dolgov
* DiskCache: use singleton pattern to create less cache object instances * DiskCache: implement ETag
2022-11-28Consistently get the self URL.wn_
This ensures all uses of the self URL get the same normalized/sanitized value.
2022-11-24rework favicon storage to use DiskCacheAndrew Dolgov
2022-11-12Address upcoming string interpolation deprecation.wn_
https://wiki.php.net/rfc/deprecate_dollar_brace_string_interpolation
2022-10-15fix some PHP8 warnings generated while dragging feed tree items aroundAndrew Dolgov
2022-08-12Use the null coalescing assignment operator in various places.wn_
2022-08-12Replace use of 'array_merge' with the spread operator and 'array_push' in ↵wn_
various places. This isn't supported for arrays with string keys until PHP 8.1. https://wiki.php.net/rfc/spread_operator_for_array
2022-08-12Use arrow functions in some places.wn_
2022-08-12Switch to direct type declarations of class properties.wn_
2022-07-31update phpstan to 1.8.2Andrew Dolgov
2022-07-16Fix an error when disabling all user pluginsChih-Hsuan Yen
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
2022-06-06feeds-tree: move external onClick dojo/method to PrefFeedTree classAndrew Dolgov
2022-06-06filter-tree: move external dojo/method to PrefFilterTree classAndrew Dolgov
2022-06-05prefs: move external filter tree onload method (which checks for inactive ↵Andrew Dolgov
feeds, etc.) to FilterTree class
2022-06-05pref-filters: add a button to hide or show rules in the filter listAndrew Dolgov
2022-06-05fix PHP8 undefined array key warning when resetting prefs to defaultsAndrew Dolgov
2022-03-09various fixes vor php 8.1 compatibilityDavid Edler
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
2022-02-20fix Feeds::_get_counters() used improperly as a replacement forAndrew Dolgov
getFeedUnread()
2022-02-20 * Feeds::_get_counters - fix retrieving unread for tagsAndrew Dolgov
* mark several symbols as @deprecated properly * replace uses of (deprecated) getFeedUnread() with Feeds::_get_counters()
2021-12-20filters:Andrew Dolgov
* add filter action to ignore feed-provided tags * simplify handling of various filter-provided tags * bump schema to 146
2021-12-02Fixes declaration of Pref_Prefs::csrf_ignore to match IHandler::csrf_ignorejbaldus
2021-12-01Revert "various fixes vor php 8.1 compatibility"Andrew Dolgov
This reverts commit 14027ae04e4aee6cf1c3a4ff9a390ec266c0fb09.
2021-11-30various fixes vor php 8.1 compatibilityDavid Edler
2021-11-18Switch from null to false as the default for missing bool params.wn_
2021-11-18Consistently handle param string to bool conversions in handlers.wn_
2021-11-14Address PHPStan warning in 'classes/pref/users.php'.wn_
2021-11-14Address PHPStan warning in 'classes/pref/system.php'.wn_
2021-11-14Address PHPStan warning in 'classes/pref/prefs.php'.wn_
Also update 'select_hash' and 'select_tag' values param, which can have int or string keys.
2021-11-14Address PHPStan warning in 'classes/pref/labels.php'.wn_
2021-11-14Address PHPStan warning in 'classes/pref/filters.php'.wn_
2021-11-14 * deal with some phpstan warnings in base plugin classAndrew Dolgov
* arguably better hack for incompatible plugins causing E_COMPILE_ERROR
2021-11-14Address PHPStan warnings in 'classes/pref/filters.php'.wn_