summaryrefslogtreecommitdiff
path: root/classes/pref/prefs.php
AgeCommit message (Collapse)Author
2023-06-14disable app passwords in the UI if auth_internal is not loadedAndrew Dolgov
2022-11-28Consistently get the self URL.wn_
This ensures all uses of the self URL get the same normalized/sanitized value.
2022-11-12Address upcoming string interpolation deprecation.wn_
https://wiki.php.net/rfc/deprecate_dollar_brace_string_interpolation
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-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-05fix PHP8 undefined array key warning when resetting prefs to defaultsAndrew Dolgov
2021-12-02Fixes declaration of Pref_Prefs::csrf_ignore to match IHandler::csrf_ignorejbaldus
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-14 * deal with some phpstan warnings in base plugin classAndrew Dolgov
* arguably better hack for incompatible plugins causing E_COMPILE_ERROR
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/prefs.php'.wn_
------ ------------------------------------------------ Line classes/pref/prefs.php ------ ------------------------------------------------ 1328 Expression on left side of ?? is not nullable. ------ ------------------------------------------------
2021-06-16add settings profile cloningAndrew Dolgov
2021-03-29OTP: generate longer secrets, also make them easier to read/copyAndrew Dolgov
2021-03-17prefs: allow setting email if it was previously blankAndrew Dolgov
2021-03-10grid view tweaksAndrew Dolgov
2021-03-10experimental: add preference to show combined mode headlines as a 2 column gridAndrew 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-07check updates one plugin at a timeAndrew Dolgov
2021-03-07fix previous to actually save enabled pluginsAndrew Dolgov
2021-03-07prevent list of enabled plugins resetting if saved while in search resultsAndrew Dolgov
2021-03-06add some icons, remove some wordsAndrew Dolgov
2021-03-06some small layout fixes, remove a few inline stylesAndrew Dolgov
2021-03-06render list of plugins on the clientAndrew Dolgov
2021-03-05use separate database column for OTP secrets (migrate previous format if needed)Andrew Dolgov
2021-03-05add a bunch of button iconsAndrew Dolgov
2021-03-05don't check for plugin updates automatically on pane openAndrew Dolgov
2021-03-04show installed plugins in the installer listAndrew Dolgov
2021-03-04shorten plugin list action buttonsAndrew Dolgov
2021-03-04_get_available_plugins: decode as arrayAndrew Dolgov
2021-03-04add search to plugin installerAndrew Dolgov
2021-03-04use orm for settings profiles stuffAndrew Dolgov
2021-03-03add basic local plugin uninstallerAndrew Dolgov
2021-03-03add basic plugin installer (uses tt-rss.org)Andrew Dolgov
2021-03-03add update button for system pluginsAndrew Dolgov
2021-03-02add digest preview button, also fix a bunch of bugsAndrew Dolgov
2021-03-02use orm when setting personal data; fix some warnings in mailer classAndrew Dolgov
2021-03-02remove (unused) prefs/toggleAdvancedAndrew Dolgov
2021-03-02use orm for app password stuffAndrew Dolgov
2021-03-01simplify internal authentication code and bump default algo to SSHA-512Andrew Dolgov
2021-03-01move version-related stuff to Config; fix conditional feed requestsAndrew Dolgov
2021-03-01hide version for bundled plugins because it's meaningless; for everything ↵Andrew Dolgov
else support showing version using git (if about[0] is null)
2021-03-01move startup checks to Config, set a bunch of @deprecated annotationsAndrew Dolgov
2021-02-28speed up plugin updating a bit, fix some phpstan warningsAndrew Dolgov
2021-02-28plugin updater: show changes before updatingAndrew Dolgov
2021-02-27add plugin updates checker into normal updates checkerAndrew Dolgov