?
avatar PhilETaylor
PhilETaylor
23 May 2021

Steps to reproduce the issue

Install joomla 4
View configuration.php
Login to admin
save global configuration with no changes

see the https://gist.github.com/PhilETaylor/95609cc3d716e985aa348da5b839cced/revisions

as you can see debug_lang_const and cache_platformprefix on clean installation are booleans

After saving Joomla global configuration, they are converted and stored as integers.

avatar PhilETaylor PhilETaylor - open - 23 May 2021
avatar joomla-cms-bot joomla-cms-bot - change - 23 May 2021
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 23 May 2021
avatar PhilETaylor PhilETaylor - change - 23 May 2021
The description was changed
avatar PhilETaylor PhilETaylor - edited - 23 May 2021
avatar wilsonge
wilsonge - comment - 23 May 2021

So obviously we should convert the cases to boolean/integer. However worth noting all J3 sites won't be converted - so we'll be handling both cases for at least the forseeable future (there probably are ways to try and force the conversion by running a save through the global config controller - but don't see any reason to force it - at least for now)

avatar PhilETaylor
PhilETaylor - comment - 23 May 2021

But Joomla 4 clean install and Joomla 4 saving configuration should pick a side and stick to it, there is no reason one should use a bool and one should use an int... regardless if the code reading those later on can use either.

avatar PhilETaylor
PhilETaylor - comment - 23 May 2021

PR [4] filter to bool the cache_platformprefix and debug_lang_const on save #34148

avatar PhilETaylor PhilETaylor - change - 23 May 2021
Status New Closed
Closed_Date 0000-00-00 00:00:00 2021-05-23 21:52:00
Closed_By PhilETaylor
avatar PhilETaylor PhilETaylor - close - 23 May 2021

Add a Comment

Login with GitHub to post a comment