summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-05-19 11:25:39 -0700
committerBernhard Posselt <nukeawhale@gmail.com>2013-05-19 11:25:39 -0700
commit71668cf08a57742c0a585c9e2fe7e4bb0ea08165 (patch)
tree6b0522341974bbce7f0263ba4a8f9cc5adb2105c /core
parent67729f5f9fe376f998b33ad647458f5f248bd38c (diff)
parent800c39fef1d7375314ebc1e4723896b27f946bfa (diff)
downloadnextcloud-server-71668cf08a57742c0a585c9e2fe7e4bb0ea08165.tar.gz
nextcloud-server-71668cf08a57742c0a585c9e2fe7e4bb0ea08165.zip
Merge pull request #3399 from owncloud/fix_js_for_ie
cleanup after people who don't test in ie
Diffstat (limited to 'core')
-rw-r--r--core/js/config.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/js/config.php b/core/js/config.php
index 48bea6ae542..53a8fb96388 100644
--- a/core/js/config.php
+++ b/core/js/config.php
@@ -26,8 +26,8 @@ $array = array(
"oc_debug" => (defined('DEBUG') && DEBUG) ? 'true' : 'false',
"oc_webroot" => "\"".OC::$WEBROOT."\"",
"oc_appswebroots" => str_replace('\\/', '/', json_encode($apps_paths)), // Ugly unescape slashes waiting for better solution
- "oc_current_user" => "document.head.getAttribute('data-user')",
- "oc_requesttoken" => "document.head.getAttribute('data-requesttoken')",
+ "oc_current_user" => "document.getElementsByTagName('head')[0].getAttribute('data-user')",
+ "oc_requesttoken" => "document.getElementsByTagName('head')[0].getAttribute('data-requesttoken')",
"datepickerFormatDate" => json_encode($l->l('jsdate', 'jsdate')),
"dayNames" => json_encode(
array(
@@ -62,4 +62,4 @@ $array = array(
// Echo it
foreach ($array as $setting => $value) {
echo("var ". $setting ."=".$value.";\n");
-} \ No newline at end of file
+}