summaryrefslogtreecommitdiffstats
path: root/core/js/config.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2016-01-15 12:57:50 +0100
committerJoas Schilling <nickvergessen@owncloud.com>2016-01-26 14:02:31 +0100
commit4ea0d3c05d374040377fdf7302e3fe23b98d7342 (patch)
treeb11a105cd7d1fdcdce6569ed5bf8ee95bca5b216 /core/js/config.php
parent6652a0fb6cee6b5494dfca56c561c3ba6ae03185 (diff)
downloadnextcloud-server-4ea0d3c05d374040377fdf7302e3fe23b98d7342.tar.gz
nextcloud-server-4ea0d3c05d374040377fdf7302e3fe23b98d7342.zip
Deprecate getFirstWeekDay() and getDateFormat() in favor of l()
Diffstat (limited to 'core/js/config.php')
-rw-r--r--core/js/config.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/js/config.php b/core/js/config.php
index 0670df60abd..708da777ee4 100644
--- a/core/js/config.php
+++ b/core/js/config.php
@@ -67,7 +67,7 @@ $array = array(
"oc_isadmin" => OC_User::isAdminUser(OC_User::getUser()) ? 'true' : 'false',
"oc_webroot" => "\"".OC::$WEBROOT."\"",
"oc_appswebroots" => str_replace('\\/', '/', json_encode($apps_paths)), // Ugly unescape slashes waiting for better solution
- "datepickerFormatDate" => json_encode($l->getDateFormat()),
+ "datepickerFormatDate" => json_encode($l->l('jsdate', null)),
"dayNames" => json_encode(
array(
(string)$l->t('Sunday'),
@@ -133,7 +133,7 @@ $array = array(
(string)$l->t('Dec.')
)
),
- "firstDay" => json_encode($l->getFirstWeekDay()) ,
+ "firstDay" => json_encode($l->l('firstday', null)) ,
"oc_config" => json_encode(
array(
'session_lifetime' => min(\OCP\Config::getSystemValue('session_lifetime', OC::$server->getIniWrapper()->getNumeric('session.gc_maxlifetime')), OC::$server->getIniWrapper()->getNumeric('session.gc_maxlifetime')),