aboutsummaryrefslogtreecommitdiff
path: root/app/Models/Context.php
diff options
context:
space:
mode:
authorGravatar Inverle <inverle@proton.me> 2025-08-31 19:09:02 +0200
committerGravatar GitHub <noreply@github.com> 2025-08-31 19:09:02 +0200
commit87879e83927d66332d2d0794bc47eeb55f8c9b46 (patch)
tree2706ce65294feee9dd09375060d14914a9e6bfe9 /app/Models/Context.php
parent94d4f942d3bd604473c1acd4b07113890e0890e0 (diff)
Improve leave validation (#7830)
* Improve leave validation * array_key_exists -> isset Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
Diffstat (limited to 'app/Models/Context.php')
-rw-r--r--app/Models/Context.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/Models/Context.php b/app/Models/Context.php
index 27b1c4309..76a51c7ef 100644
--- a/app/Models/Context.php
+++ b/app/Models/Context.php
@@ -151,6 +151,15 @@ final class FreshRSS_Context {
if (!in_array(FreshRSS_Context::$user_conf->display_categories, [ 'active', 'remember', 'all', 'none' ], true)) {
FreshRSS_Context::$user_conf->display_categories = FreshRSS_Context::$user_conf->display_categories === true ? 'all' : 'active';
}
+
+ // FreshRSS 1.27.1+
+ if (isset(FreshRSS_Context::$user_conf->shortcuts['close_dropdown'])) {
+ $shortcuts = FreshRSS_Context::$user_conf->shortcuts;
+ $shortcuts['close_menus'] = $shortcuts['close_dropdown'];
+ unset($shortcuts['close_dropdown']);
+ FreshRSS_Context::$user_conf->shortcuts = $shortcuts;
+ FreshRSS_Context::$user_conf->save();
+ }
}
/**