In Preferences, you have listed libraries.
If you use the theme library and alter config method, core paths are always displayed.
But I checked that the libraries are loaded correctly
$libraries = $lib->info();
And if I do a mistake in config, I got error warning with wrong status, so I know that this is working.
The problem is only with displaying
this changes values:
$details = $lib->detect($machineName);
I wasn't able to get further.
If somebody without looking in the theme code checks this, they will don't know that the different bootstrap version is used.
Thanks
How to reproduce
This theme_library.php is used from somebody else theme
/**
* Alters library information before detection and caching take place.
*/
function config_alter(&$libraries)
{
// Bootstrap (CDN).
$libraries['cdn.bootstrap5']['library_path'] = 'https://cdn.jsdelivr.net/npm/bootstrap@5.3.2';
$libraries['cdn.bootstrap5']['path'] = '';
$libraries['cdn.bootstrap5']['version_arguments']['pattern'] = '/(\d\.\d\.\d\-[a-z]*)/';
// Bootstrap (local).
$libraries['bootstrap5']['library_path'] = '{THEME}';
$libraries['bootstrap5']['path'] = '';
$libraries['bootstrap5']['theme'] = '';
$libraries['bootstrap5']['version'] = '5.3.2';
$libraries['bootstrap5']['version_arguments']['pattern'] = '/(\d\.\d\.\d\-[a-z]*)/';
}
But you can test this with bootstrap 3 theme too.
select bootstrap3 for frontend
select bootstrap style f.e. cosmo
check library information
It should unset cdn.bootstrap and bootstrap keys, so they shouldn't be listed there.
Expected behavior
Maybe I don't understand the purpose of this list.
But the confusing part is that if I do mistake in theme library file, it displays it and path and version are correct.
What e107 version are you using?
v2.3.3
Bug description
In Preferences, you have listed libraries. If you use the theme library and alter config method, core paths are always displayed.
But I checked that the libraries are loaded correctly
And if I do a mistake in config, I got error warning with wrong status, so I know that this is working.
$libraries = $lib->info();
The problem is only with displaying this changes values:
$details = $lib->detect($machineName);
I wasn't able to get further.If somebody without looking in the theme code checks this, they will don't know that the different bootstrap version is used. Thanks
How to reproduce
This theme_library.php is used from somebody else theme
But you can test this with bootstrap 3 theme too.
It should unset cdn.bootstrap and bootstrap keys, so they shouldn't be listed there.
Expected behavior
Maybe I don't understand the purpose of this list.
But the confusing part is that if I do mistake in theme library file, it displays it and path and version are correct.![image](https://github.com/e107inc/e107/assets/5429548/54594859-ed4d-4fb7-adef-a00cd3a9d35e)
Thanks
What browser(s) are you seeing the problem on?
Chrome / Brave
PHP Version
PHP 8.1