diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2012-10-25 17:51:59 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2012-10-25 17:51:59 +0200 |
commit | ec613b589bed2069346696902f59eadc2a3a91d5 (patch) | |
tree | 108f8876d53a3c68ff8ec8b17fb6dabd239a28b5 | |
parent | 228a05a79247da63504445c75cb5925b563ac0b3 (diff) | |
download | nextcloud-server-ec613b589bed2069346696902f59eadc2a3a91d5.tar.gz nextcloud-server-ec613b589bed2069346696902f59eadc2a3a91d5.zip |
Fix not defined JS variables
-rw-r--r-- | core/templates/layout.guest.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/templates/layout.guest.php b/core/templates/layout.guest.php index 6f59e18a8e1..1f39148b2b1 100644 --- a/core/templates/layout.guest.php +++ b/core/templates/layout.guest.php @@ -12,6 +12,9 @@ var oc_appswebroots = <?php echo $_['apps_paths'] ?>; var oc_requesttoken = '<?php echo $_['requesttoken']; ?>'; var oc_requestlifespan = '<?php echo $_['requestlifespan']; ?>'; + 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')) ?>; </script> <?php foreach($_['jsfiles'] as $jsfile): ?> <script type="text/javascript" src="<?php echo $jsfile; ?>"></script> |