summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorChristian Reiner <github@christian-reiner.info>2012-09-28 18:57:20 +0200
committerChristian Reiner <github@christian-reiner.info>2012-09-28 18:57:20 +0200
commit71454b1bca0accd1ab5d7628169d4714bb682030 (patch)
tree3ddb233d79dc14834f467c4990d8b2a031892fa5 /core
parentcd399f9c771ca730fd01b7fdde7a58ec7f9de46b (diff)
downloadnextcloud-server-71454b1bca0accd1ab5d7628169d4714bb682030.tar.gz
nextcloud-server-71454b1bca0accd1ab5d7628169d4714bb682030.zip
Fix to preserve backward compatibility for apps creating static links containing the request token (currently the contacts app and maybe some 3rd party implementations)
Diffstat (limited to 'core')
-rw-r--r--core/templates/layout.user.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/templates/layout.user.php b/core/templates/layout.user.php
index 25af64c8d57..b6d8a7604a2 100644
--- a/core/templates/layout.user.php
+++ b/core/templates/layout.user.php
@@ -11,8 +11,8 @@
var oc_webroot = '<?php echo OC::$WEBROOT; ?>';
var oc_appswebroots = <?php echo $_['apps_paths'] ?>;
var oc_current_user = '<?php echo OC_User::getUser() ?>';
- var oc_requesttoken = '<?php echo OC_Util::callRegister(); ?>';
- var oc_requestlifespan = '<?php echo OC_Util::$callLifespan; ?>';
+ var oc_requesttoken = '<?php echo $_['requesttoken']; ?>';
+ var oc_requestlifespan = '<?php echo $_['requestlifespan']; ?>';
</script>
<?php foreach($_['jsfiles'] as $jsfile): ?>
<script type="text/javascript" src="<?php echo $jsfile; ?>"></script>