Flarum only saves settings in the database that have been changed, hence the default values aren't saved in the database. When settings aren't saved in the database, a default value needs to be used in the oninit() function. For example
Simply change the setting in the admin panel to a different value and save it so that Flarum understands a change has been made and needs to be updated. You can change it back to it's previous value and save it again.
Flarum only saves settings in the database that have been changed, hence the default values aren't saved in the database. When settings aren't saved in the database, a default value needs to be used in the
oninit()
function. For exampleneeds to be changed to
Temporary Fix
Simply change the setting in the admin panel to a different value and save it so that Flarum understands a change has been made and needs to be updated. You can change it back to it's previous value and save it again.