diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2019-05-10 14:18:08 +0200 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2019-05-13 08:27:43 +0200 |
commit | c624c102a6edbe51256aaf5c0025ff6331018f32 (patch) | |
tree | 224082375cd3a6c433d6f3481e548e99ed8a47a6 /settings | |
parent | 0b136d28a3ab9a14f1a001c0bc8ca15d4a4abf4a (diff) | |
download | nextcloud-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.js | 2 |
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]; |