Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: theme_library for frontend theme is influencing admin theme too #5243

Open
Jimmi08 opened this issue Apr 28, 2024 · 0 comments
Open
Labels
type: bug A problem that should not be happening

Comments

@Jimmi08
Copy link
Contributor

Jimmi08 commented Apr 28, 2024

What e107 version are you using?

v2.3.3, Latest Github version (just updated)

Bug description

I needed to remove jQuery from the frontend theme. I used the theme_library addon for this.
Unfortunately, it has an impact on the admin theme too.

How to reproduce

Check how theme library addon works

This fixed it :

function config_alter(&$libraries)
	{
		if(defined("e_ADMIN_AREA") AND e_ADMIN_AREA) {

		}
		else {
			$libraries['cdn.jquery'] = array();
			$libraries['jquery'] = array();
			$libraries['cdn.jquery3'] = array();
			$libraries['jquery3'] = array();
		}
 
	}

Expected behavior

Load javascript for bootstrap3 theme only

What browser(s) are you seeing the problem on?

Chrome / Brave

PHP Version

8.1

@Jimmi08 Jimmi08 added the type: bug A problem that should not be happening label Apr 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A problem that should not be happening
Projects
None yet
Development

No branches or pull requests

1 participant