summaryrefslogtreecommitdiffstats
path: root/lib/app.php
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-09-07 16:20:13 +0200
committerBart Visscher <bartv@thisnet.nl>2012-09-07 16:20:13 +0200
commit631df21de640183623e626409903a0a1f7b0105d (patch)
tree8010e73de4e0002a80a86241a1eff7f7f3081adf /lib/app.php
parent3829460ab8cbb6de65c53583a20fd04cbe7927dd (diff)
downloadnextcloud-server-631df21de640183623e626409903a0a1f7b0105d.tar.gz
nextcloud-server-631df21de640183623e626409903a0a1f7b0105d.zip
Prevent loading all apps twice from overwriting the core scripts and styles
Diffstat (limited to 'lib/app.php')
-rwxr-xr-xlib/app.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/app.php b/lib/app.php
index f5c328afe7c..f1e4f965efd 100755
--- a/lib/app.php
+++ b/lib/app.php
@@ -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;