Fix display_categories upgrade from 1.16.0 again (#3019)

* Fix display_categories upgrade from 1.16.0 again

#fix https://github.com/FreshRSS/FreshRSS/issues/3017
Follow-up of https://github.com/FreshRSS/FreshRSS/pull/3018
There were two bugs. I forgot that `ConfigurationSetter.php` is not
called when reading `config.php`

* Changelog 3019
This commit is contained in:
Alexandre Alapetite authored and GitHub committed 2020-05-30 22:48:00 +02:00
1 parent b4649b640f
commit e58ad65902
2 files changed
+6 -1

No files matched your search

+5
View File
@@ -69,6 +69,11 @@ class FreshRSS_Context {
}
FreshRSS_Context::$user_conf->archiving = $archiving;
}
//Legacy < 1.16.1
if (!in_array(FreshRSS_Context::$user_conf->display_categories, [ 'active', 'all', 'none' ], true)) {
FreshRSS_Context::$user_conf->display_categories = FreshRSS_Context::$user_conf->display_categories === true ? 'all' : 'active';
}
}
/**