On supported versions the version is always > 12
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
7d1fd1b49a
commit
528b0549dc
|
|
@ -1,9 +1,7 @@
|
|||
<?php
|
||||
\OCP\Util::addStyle('registration', 'style');
|
||||
\OCP\Util::addScript('registration', 'form');
|
||||
if (\OCP\Util::getVersion()[0] >= 12) {
|
||||
\OCP\Util::addStyle('core', 'guest');
|
||||
}
|
||||
?><form action="<?php print_unescaped(\OC::$server->getURLGenerator()->linkToRoute('registration.register.createAccount', ['token'=>$_['token']])) ?>" method="post">
|
||||
<input type="hidden" name="requesttoken" value="<?php p($_['requesttoken']) ?>" />
|
||||
<fieldset>
|
||||
|
|
|
|||
|
|
@ -1,8 +1,6 @@
|
|||
<?php
|
||||
\OCP\Util::addStyle('registration', 'style');
|
||||
if (\OCP\Util::getVersion()[0] >= 12) {
|
||||
\OCP\Util::addStyle('core', 'guest');
|
||||
}
|
||||
?>
|
||||
<ul class="msg error-wide nc-theming-main-text">
|
||||
<li><?php print_unescaped($_['msg'])?></li>
|
||||
|
|
|
|||
|
|
@ -1,8 +1,6 @@
|
|||
<?php
|
||||
\OCP\Util::addStyle('registration', 'style');
|
||||
if (\OCP\Util::getVersion()[0] >= 12) {
|
||||
\OCP\Util::addStyle('core', 'guest');
|
||||
}
|
||||
if ($_['entered']): ?>
|
||||
<?php if (empty($_['errormsg'])): ?>
|
||||
<ul class="success">
|
||||
|
|
|
|||
Loading…
Reference in New Issue