diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2014-12-10 16:18:18 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2014-12-16 18:45:13 +0100 |
commit | 3cc33a98a898f247499896ae0674ae680564fb12 (patch) | |
tree | cb34f261f123d8146d76265b4e57dc94d096e0cd /core/templates | |
parent | 775f6a1354cd3f691a65afa754b93c19383ebeee (diff) | |
download | nextcloud-server-3cc33a98a898f247499896ae0674ae680564fb12.tar.gz nextcloud-server-3cc33a98a898f247499896ae0674ae680564fb12.zip |
use script instead of \OCP\Util methods
Diffstat (limited to 'core/templates')
-rw-r--r-- | core/templates/login.php | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/core/templates/login.php b/core/templates/login.php index 86a1b605df5..2198f063dbc 100644 --- a/core/templates/login.php +++ b/core/templates/login.php @@ -1,5 +1,11 @@ <?php /** @var $l OC_L10N */ ?> -<?php vendor_script('jsTimezoneDetect/jstz') ?> +<?php +vendor_script('jsTimezoneDetect/jstz'); +script('core', [ + 'visitortimezone', + 'lostpassword' +]); +?> <!--[if IE 8]><style>input[type="checkbox"]{padding:0;}</style><![endif]--> <form method="post" name="login"> @@ -65,8 +71,5 @@ </ul> </fieldset> </form> -<?php } ?> +<?php } -<?php -OCP\Util::addscript('core', 'visitortimezone'); -OCP\Util::addScript('core', 'lostpassword'); |