Repository navigation
Why does SystemParameters.php only show "Default Theme" selector if server has write access to config.php? #960
Replies: 4 comments 3 replies
|
I'm not sure the default theme is used any more. I seem to remember this has been discussed before, I haven't got the time to search for that discussion right now. Tim |
|
As @timschofield pointed out, I also remember discussing it long ago. I think SystemParameters.php can be simplified by deleting this portion of code. |
Iiuc $DefaultTheme in config.php is used by includes/session.php to set $Theme if necessary but I can't tell if there is logic that makes this redundant and $DefaultTheme isn't actually used. Regardless though, i don't see the need for editing $DefaultTheme in config.php by SystemParameters.php. I would prefer to not edit config.php programatically as a rule which allows config.php to be set read-only without loss of functionality and resulting in simpler code (clearly some admins must set config.php read-only or there wouldn't be a test for it in SystemParameters.php). |
|
New issue created based on discussion here #963 |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Starting down a different rabbit hole this today, SystemParameters.php only shows the "Default Theme" selector (in the System section) if the web server has write access to config.php.
I see no reason for this behavior. Iiuc SystemParameters.php can't write changes to config.php so what does it matter? I was going to create an issue but perhaps someone knows something I don't. Is there a reason for this behavior?
If there isn't a good reason, I propose the requirement be removed because it confuses the logic for no reason.
DefaultTheme is the only config value in SystemParameters.php with an is_writable('config.php') test.
All reactions