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
|
<?php
|
||||||
\OCP\Util::addStyle('registration', 'style');
|
\OCP\Util::addStyle('registration', 'style');
|
||||||
\OCP\Util::addScript('registration', 'form');
|
\OCP\Util::addScript('registration', 'form');
|
||||||
if (\OCP\Util::getVersion()[0] >= 12) {
|
\OCP\Util::addStyle('core', 'guest');
|
||||||
\OCP\Util::addStyle('core', 'guest');
|
|
||||||
}
|
|
||||||
?><form action="<?php print_unescaped(\OC::$server->getURLGenerator()->linkToRoute('registration.register.createAccount', ['token'=>$_['token']])) ?>" method="post">
|
?><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']) ?>" />
|
<input type="hidden" name="requesttoken" value="<?php p($_['requesttoken']) ?>" />
|
||||||
<fieldset>
|
<fieldset>
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
\OCP\Util::addStyle('registration', 'style');
|
\OCP\Util::addStyle('registration', 'style');
|
||||||
if (\OCP\Util::getVersion()[0] >= 12) {
|
\OCP\Util::addStyle('core', 'guest');
|
||||||
\OCP\Util::addStyle('core', 'guest');
|
|
||||||
}
|
|
||||||
?>
|
?>
|
||||||
<ul class="msg error-wide nc-theming-main-text">
|
<ul class="msg error-wide nc-theming-main-text">
|
||||||
<li><?php print_unescaped($_['msg'])?></li>
|
<li><?php print_unescaped($_['msg'])?></li>
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
\OCP\Util::addStyle('registration', 'style');
|
\OCP\Util::addStyle('registration', 'style');
|
||||||
if (\OCP\Util::getVersion()[0] >= 12) {
|
\OCP\Util::addStyle('core', 'guest');
|
||||||
\OCP\Util::addStyle('core', 'guest');
|
|
||||||
}
|
|
||||||
if ($_['entered']): ?>
|
if ($_['entered']): ?>
|
||||||
<?php if (empty($_['errormsg'])): ?>
|
<?php if (empty($_['errormsg'])): ?>
|
||||||
<ul class="success">
|
<ul class="success">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue