On supported versions the version is always > 12

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2020-07-13 16:50:14 +02:00
parent 7d1fd1b49a
commit 528b0549dc
No known key found for this signature in database
GPG Key ID: 7076EA9751AACDDA
3 changed files with 3 additions and 9 deletions

View File

@ -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>

View File

@ -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>

View File

@ -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">