summaryrefslogtreecommitdiff
path: root/classes/pref
AgeCommit message (Collapse)Author
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_
2021-11-13minor: correct $cat type in Pref_Feeds#calculate_children_count()wn_
2021-11-13Address PHPStan warnings in 'classes/pref/feeds.php'.wn_
2021-11-12Update signature of handler 'csrf_ignore' to include types.wn_
2021-11-10add two helper account access levels:Andrew Dolgov
- 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
2021-11-01Address PHPStan warning in 'classes/pref/users.php'.wn_
------ ------------------------------- Line classes/pref/users.php ------ ------------------------------- 170 If condition is always false. ------ -------------------------------
2021-11-01Address PHPStan warning in 'classes/pref/prefs.php'.wn_
------ ------------------------------------------------ Line classes/pref/prefs.php ------ ------------------------------------------------ 1328 Expression on left side of ?? is not nullable. ------ ------------------------------------------------
2021-10-15Fix undefined array key "output" when adding new labelPhilip Klempin
2021-09-02fix label ordering in feed treeAndrew Dolgov
2021-08-23Pref_Feeds:calculate_children_count - fix operator precedenceAndrew Dolgov
2021-08-18fix broken feed tree generation when categories are disabledAndrew Dolgov
2021-08-17Make prefs feed search case-insensitive.wn_
Previously the search query had to match lower title or feed_url (i.e. searching w/ uppercase wouldn't match).
2021-08-17Use ORM more in 'classes/pref/feeds.php'.wn_
2021-07-28fix rendering of category filters on UncategorizedAndrew Dolgov
2021-06-16add settings profile cloningAndrew Dolgov
2021-03-29OTP: generate longer secrets, also make them easier to read/copyAndrew Dolgov
2021-03-23Revert "clip max displayed counter value to 9999 because of container node ↵Andrew Dolgov
width" This reverts commit c34a4c85bde242c991baf1f383694e9a4fa82940.
2021-03-23clip max displayed counter value to 9999 because of container node widthAndrew Dolgov
2021-03-17prefs: allow setting email if it was previously blankAndrew Dolgov
2021-03-16remove published opml (use CLI instead)Andrew Dolgov
2021-03-12Add coalescing operator to otp_enabled when changing user passwordPhilip Klempin
2021-03-10grid view tweaksAndrew Dolgov
2021-03-10experimental: add preference to show combined mode headlines as a 2 column gridAndrew Dolgov
2021-03-09show E_COMPILE_ERROR in event log at higher severity levelsAndrew Dolgov
2021-03-09app password list: fix th/td alignmentAndrew Dolgov
2021-03-08Default to null 'rv' for plugin update check.wn_
Previously 'rv' was returned as an empty JS array, causing 'p.rv.git_status != 0' to evaluate to true and a misleading 'Ready to update' appearing for certain plugins.
2021-03-08fix some php8 warningsAndrew Dolgov