diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2012-10-28 10:33:18 +0100 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2012-10-28 10:33:18 +0100 |
commit | 5245e2b6beb971842c9760476372cef41a5d9a17 (patch) | |
tree | 2c0dcc3355bd9669d068154222e3ac8a132bcb85 /core | |
parent | 2d5edead777ff2010ff5dc56f36d81b033dfd436 (diff) | |
download | nextcloud-server-5245e2b6beb971842c9760476372cef41a5d9a17.tar.gz nextcloud-server-5245e2b6beb971842c9760476372cef41a5d9a17.zip |
->l expects two parameters
Diffstat (limited to 'core')
-rw-r--r-- | core/templates/layout.guest.php | 3 | ||||
-rw-r--r-- | core/templates/layout.user.php | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/core/templates/layout.guest.php b/core/templates/layout.guest.php index 1f39148b2b1..e6468cdcfb4 100644 --- a/core/templates/layout.guest.php +++ b/core/templates/layout.guest.php @@ -12,9 +12,10 @@ var oc_appswebroots = <?php echo $_['apps_paths'] ?>; var oc_requesttoken = '<?php echo $_['requesttoken']; ?>'; var oc_requestlifespan = '<?php echo $_['requestlifespan']; ?>'; + var datepickerFormatDate = <?php echo json_encode($l->l('jsdate', 'jsdate')) ?>; var dayNames = <?php echo json_encode(array((string)$l->t('Sunday'), (string)$l->t('Monday'), (string)$l->t('Tuesday'), (string)$l->t('Wednesday'), (string)$l->t('Thursday'), (string)$l->t('Friday'), (string)$l->t('Saturday'))) ?>; var monthNames = <?php echo json_encode(array((string)$l->t('January'), (string)$l->t('February'), (string)$l->t('March'), (string)$l->t('April'), (string)$l->t('May'), (string)$l->t('June'), (string)$l->t('July'), (string)$l->t('August'), (string)$l->t('September'), (string)$l->t('October'), (string)$l->t('November'), (string)$l->t('December'))) ?>; - var firstDay = <?php echo json_encode($l->l('firstday')) ?>; + var firstDay = <?php echo json_encode($l->l('firstday', 'firstday')) ?>; </script> <?php foreach($_['jsfiles'] as $jsfile): ?> <script type="text/javascript" src="<?php echo $jsfile; ?>"></script> diff --git a/core/templates/layout.user.php b/core/templates/layout.user.php index 1f16fdf7c6c..d876fbc98e8 100644 --- a/core/templates/layout.user.php +++ b/core/templates/layout.user.php @@ -13,10 +13,10 @@ var oc_current_user = '<?php echo OC_User::getUser() ?>'; var oc_requesttoken = '<?php echo $_['requesttoken']; ?>'; var oc_requestlifespan = '<?php echo $_['requestlifespan']; ?>'; - var datepickerFormatDate = <?php echo json_encode($l->l('jsdate')) ?>; + var datepickerFormatDate = <?php echo json_encode($l->l('jsdate', 'jsdate')) ?>; var dayNames = <?php echo json_encode(array((string)$l->t('Sunday'), (string)$l->t('Monday'), (string)$l->t('Tuesday'), (string)$l->t('Wednesday'), (string)$l->t('Thursday'), (string)$l->t('Friday'), (string)$l->t('Saturday'))) ?>; var monthNames = <?php echo json_encode(array((string)$l->t('January'), (string)$l->t('February'), (string)$l->t('March'), (string)$l->t('April'), (string)$l->t('May'), (string)$l->t('June'), (string)$l->t('July'), (string)$l->t('August'), (string)$l->t('September'), (string)$l->t('October'), (string)$l->t('November'), (string)$l->t('December'))) ?>; - var firstDay = <?php echo json_encode($l->l('firstday')) ?>; + var firstDay = <?php echo json_encode($l->l('firstday', 'firstday')) ?>; </script> <?php foreach($_['jsfiles'] as $jsfile): ?> <script type="text/javascript" src="<?php echo $jsfile; ?>"></script> |