diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2013-05-11 21:07:05 +0200 |
---|---|---|
committer | Morris Jobke <morris.jobke@gmail.com> | 2013-05-12 10:51:21 +0200 |
commit | 63d51980e17b34c16fdff2cb5bc6f9924a8f1d61 (patch) | |
tree | fdc67699293abbf7e72b4dae3c9dba9dbc95be06 /core/js/config.php | |
parent | 74f92d0c7fa1afa181837a9e827933769816ecbb (diff) | |
download | nextcloud-server-63d51980e17b34c16fdff2cb5bc6f9924a8f1d61.tar.gz nextcloud-server-63d51980e17b34c16fdff2cb5bc6f9924a8f1d61.zip |
Get config from template
Diffstat (limited to 'core/js/config.php')
-rw-r--r-- | core/js/config.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/js/config.php b/core/js/config.php index 0aaa4482287..8a377c2da1a 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" => "\"".OC_User::getUser(). "\"", - "oc_requesttoken" => "\"".OC_Util::callRegister(). "\"", + "oc_current_user" => "document.head.getAttribute('data-user');", + "oc_requesttoken" => "document.head.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 |