diff options
Diffstat (limited to 'core/templates')
-rw-r--r-- | core/templates/layout.guest.php | 3 | ||||
-rw-r--r-- | core/templates/layout.user.php | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/core/templates/layout.guest.php b/core/templates/layout.guest.php index 37a74f46968..84422a10b18 100644 --- a/core/templates/layout.guest.php +++ b/core/templates/layout.guest.php @@ -15,6 +15,9 @@ var oc_appswebroot = '<?php echo OC::$APPSWEBROOT; ?>'; var oc_appswebroot = '<?php echo OC::$APPSWEBROOT; ?>'; </script> + <?php if (!defined('DEBUG') || !DEBUG): ?> + <script type="text/javascript" src="<?php echo OC_Helper::linkToRemote('core.js', false) ?>"></script> + <?php endif ?> <?php foreach($_['jsfiles'] as $jsfile): ?> <script type="text/javascript" src="<?php echo $jsfile; ?>"></script> <?php endforeach; ?> diff --git a/core/templates/layout.user.php b/core/templates/layout.user.php index e6fa910ce04..03b07c07283 100644 --- a/core/templates/layout.user.php +++ b/core/templates/layout.user.php @@ -15,6 +15,9 @@ var oc_appswebroot = '<?php echo OC::$APPSWEBROOT; ?>'; var oc_current_user = '<?php echo OC_User::getUser() ?>'; </script> + <?php if (!defined('DEBUG') || !DEBUG): ?> + <script type="text/javascript" src="<?php echo OC_Helper::linkToRemote('core.js', false) ?>"></script> + <?php endif ?> <?php foreach($_['jsfiles'] as $jsfile): ?> <script type="text/javascript" src="<?php echo $jsfile; ?>"></script> <?php endforeach; ?> |