Skip to content

Commit

Permalink
reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidGoodwin committed Feb 4, 2021
1 parent 4e7d86c commit 4d50521
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions public/setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -511,17 +511,15 @@ class="col-sm-4 control-label"><?= $PALANG['password_again'] ?></label>

<?php

function _error_field($errors, $key)
{
function _error_field($errors, $key) {
if (!isset($errors[$key])) {
return '';
}
return "<span style='color: #ff0000'>{$errors[$key]}</span>";
}


function create_admin($values)
{
function create_admin($values) {
define('POSTFIXADMIN_SETUP', 1); # avoids instant redirect to login.php after creating the admin

$handler = new AdminHandler(1, 'setup.php');
Expand Down Expand Up @@ -549,8 +547,7 @@ function create_admin($values)
/**
* @return array['info' => string[], 'warn' => string[], 'error' => string[] ]
*/
function do_software_environment_check()
{
function do_software_environment_check() {
$CONF = Config::getInstance()->getAll();

$warn = [];
Expand Down

0 comments on commit 4d50521

Please sign in to comment.