diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2013-01-21 00:10:47 +0100 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2013-01-21 00:10:47 +0100 |
commit | 5fff57339f5fa6ca6206f41a36e291e9662fe6ef (patch) | |
tree | 5b3a57500456c52e4ed0836331f681828b1c40ce /core/templates/layout.base.php | |
parent | 68025ac43c8f439f58347121b3b7a86a44f1f80d (diff) | |
download | nextcloud-server-5fff57339f5fa6ca6206f41a36e291e9662fe6ef.tar.gz nextcloud-server-5fff57339f5fa6ca6206f41a36e291e9662fe6ef.zip |
Move config to core/js/config.php
Diffstat (limited to 'core/templates/layout.base.php')
-rw-r--r-- | core/templates/layout.base.php | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/core/templates/layout.base.php b/core/templates/layout.base.php index 47f4b423b3e..47fb75612cf 100644 --- a/core/templates/layout.base.php +++ b/core/templates/layout.base.php @@ -7,12 +7,7 @@ <?php foreach ($_['cssfiles'] as $cssfile): ?> <link rel="stylesheet" href="<?php echo $cssfile; ?>" type="text/css" media="screen" /> <?php endforeach; ?> - <script type="text/javascript"> - var oc_debug = <?php echo (defined('DEBUG') && DEBUG) ? 'true' : 'false'; ?>; - var oc_webroot = '<?php echo OC::$WEBROOT; ?>'; - var oc_appswebroots = <?php echo $_['apps_paths'] ?>; - var oc_requesttoken = '<?php echo $_['requesttoken']; ?>'; - </script> + <script type="text/javascript" src="<?php echo OC_Helper::linkToRoute('js_config');?>"></script> <?php foreach ($_['jsfiles'] as $jsfile): ?> <script type="text/javascript" src="<?php echo $jsfile; ?>"></script> <?php endforeach; ?> |