*/
private static $installer;
- public static function init()
+ public static function init(array $parameters = [])
{
$a = self::getApp();
// so we may not have a css at all. Here we set a static css file for the install procedure pages
Renderer::$theme['stylesheet'] = $a->getBaseURL() . '/view/install/style.css';
- self::$currentWizardStep = defaults($_POST, 'pass', self::SYSTEM_CHECK);
+ self::$currentWizardStep = ($_POST['pass'] ?? '') ?: self::SYSTEM_CHECK;
}
- public static function post()
+ public static function post(array $parameters = [])
{
$a = self::getApp();
$configCache = $a->getConfigCache();
}
}
- public static function content()
+ public static function content(array $parameters = [])
{
$a = self::getApp();
$configCache = $a->getConfigCache();
{
$configCache->set($cat, $key,
Strings::escapeTags(
- trim(defaults($post, sprintf('%s-%s', $cat, $key),
- (!isset($default) ? $configCache->get($cat, $key) : $default))
+ trim(($post[sprintf('%s-%s', $cat, $key)] ?? '') ?:
+ ($default ?? $configCache->get($cat, $key))
)
)
);