From 249a5dbdba0dc3628c0f3490680de61dc91aafc8 Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Thu, 2 May 2019 16:03:58 +0200 Subject: Move oc_webroot, OC.webroot and OC.getRootPath() to the bundle Signed-off-by: Christoph Wurst --- lib/private/Template/JSConfigHelper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/private/Template/JSConfigHelper.php') diff --git a/lib/private/Template/JSConfigHelper.php b/lib/private/Template/JSConfigHelper.php index 7400650eade..ee049533bbb 100644 --- a/lib/private/Template/JSConfigHelper.php +++ b/lib/private/Template/JSConfigHelper.php @@ -170,7 +170,7 @@ class JSConfigHelper { "_oc_isadmin" => $this->groupManager->isAdmin($uid) ? 'true' : 'false', "backendAllowsPasswordConfirmation" => $userBackendAllowsPasswordConfirmation ? 'true' : 'false', "oc_dataURL" => is_string($dataLocation) ? "\"".$dataLocation."\"" : 'false', - "oc_webroot" => "\"".\OC::$WEBROOT."\"", + "_oc_webroot" => "\"".\OC::$WEBROOT."\"", "oc_appswebroots" => str_replace('\\/', '/', json_encode($apps_paths)), // Ugly unescape slashes waiting for better solution "datepickerFormatDate" => json_encode($this->l->l('jsdate', null)), 'nc_lastLogin' => $lastConfirmTimestamp, -- cgit v1.2.3