summaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2019-05-10 14:18:08 +0200
committerChristoph Wurst <christoph@winzerhof-wurst.at>2019-05-13 08:27:43 +0200
commitc624c102a6edbe51256aaf5c0025ff6331018f32 (patch)
tree224082375cd3a6c433d6f3481e548e99ed8a47a6 /settings
parent0b136d28a3ab9a14f1a001c0bc8ca15d4a4abf4a (diff)
downloadnextcloud-server-c624c102a6edbe51256aaf5c0025ff6331018f32.tar.gz
nextcloud-server-c624c102a6edbe51256aaf5c0025ff6331018f32.zip
Move OC.requestToken to the bundle, deprecate oc_requesttoken
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'settings')
-rw-r--r--settings/js/settings/personalInfo.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/settings/js/settings/personalInfo.js b/settings/js/settings/personalInfo.js
index 53f2c82cb73..454374b303d 100644
--- a/settings/js/settings/personalInfo.js
+++ b/settings/js/settings/personalInfo.js
@@ -77,7 +77,7 @@ function showAvatarCropper () {
$cropper.children('.inner-container').prepend($cropperImage);
$cropperImage.attr('src',
- OC.generateUrl('/avatar/tmp') + '?requesttoken=' + encodeURIComponent(oc_requesttoken) + '#' + Math.floor(Math.random() * 1000));
+ OC.generateUrl('/avatar/tmp') + '?requesttoken=' + encodeURIComponent(OC.requestToken) + '#' + Math.floor(Math.random() * 1000));
$cropperImage.load(function () {
var img = $cropperImage.get()[0];