aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/app/Controllers/configureController.php
diff options
context:
space:
mode:
authormaTh <1645099+math-GH@users.noreply.github.com>2025-03-13 23:10:48 +0100
committerGitHub <noreply@github.com>2025-03-13 23:10:48 +0100
commit7de384bf9c192292cbc726085eedfadddfa7ca7d (patch)
tree6621d2f3e8d7b18975e2ac2d70ad4b2b56ba6195 /app/Controllers/configureController.php
parenta7361a3e7cd335c8932deba88fe60e8f673c2d40 (diff)
downloadfreshrss-7de384bf9c192292cbc726085eedfadddfa7ca7d.tar.gz
freshrss-7de384bf9c192292cbc726085eedfadddfa7ca7d.zip
Mark as read button: config for the size (#7314)
* settings * i18n: mark_read_button * big, small, none * fix * Fixes * make fix-all --------- Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
Diffstat (limited to 'app/Controllers/configureController.php')
-rw-r--r--app/Controllers/configureController.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/Controllers/configureController.php b/app/Controllers/configureController.php
index c525de18d..d1912fbc9 100644
--- a/app/Controllers/configureController.php
+++ b/app/Controllers/configureController.php
@@ -131,6 +131,8 @@ class FreshRSS_configure_Controller extends FreshRSS_ActionController {
FreshRSS_Context::userConf()->lazyload = Minz_Request::paramBoolean('lazyload');
FreshRSS_Context::userConf()->sides_close_article = Minz_Request::paramBoolean('sides_close_article');
FreshRSS_Context::userConf()->sticky_post = Minz_Request::paramBoolean('sticky_post');
+ $markReadButton = Minz_Request::paramStringNull('mark_read_button', plaintext: true);
+ FreshRSS_Context::userConf()->mark_read_button = in_array($markReadButton, ['big', 'small', 'none'], true) ? $markReadButton : 'big';
FreshRSS_Context::userConf()->reading_confirm = Minz_Request::paramBoolean('reading_confirm');
FreshRSS_Context::userConf()->auto_remove_article = Minz_Request::paramBoolean('auto_remove_article');
FreshRSS_Context::userConf()->mark_updated_article_unread = Minz_Request::paramBoolean('mark_updated_article_unread');