Skip to content
Snippets Groups Projects
Commit 631df21d authored by Bart Visscher's avatar Bart Visscher
Browse files

Prevent loading all apps twice from overwriting the core scripts and styles

parent 3829460a
No related branches found
No related tags found
No related merge requests found
......@@ -62,7 +62,9 @@ class OC_App{
ob_end_clean();
if (!defined('DEBUG') || !DEBUG) {
if (is_null($types)) {
if (is_null($types)
&& empty(OC_Util::$core_scripts)
&& empty(OC_Util::$core_styles)) {
OC_Util::$core_scripts = OC_Util::$scripts;
OC_Util::$scripts = array();
OC_Util::$core_styles = OC_Util::$styles;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment