Skip to content

Commit

Permalink
Fix installation
Browse files Browse the repository at this point in the history
  • Loading branch information
slawkens committed Jan 28, 2024
1 parent a88103a commit 9c318f9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
9 changes: 0 additions & 9 deletions install/steps/7-finish.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,14 +137,5 @@
}
$_SESSION['installed'] = true;
}

foreach($_SESSION as $key => $value) {
if(strpos($key, 'var_') !== false)
unset($_SESSION[$key]);
}
unset($_SESSION['saved']);
if(file_exists(CACHE . 'install.txt')) {
unlink(CACHE . 'install.txt');
}
}
}
12 changes: 11 additions & 1 deletion install/tools/7-finish.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,18 @@ function insert_sample_if_not_exist($p) {
require_once SYSTEM . 'migrations/27.php';
require_once SYSTEM . 'migrations/30.php';

foreach($_SESSION as $key => $value) {
if(str_contains($key, 'var_'))
unset($_SESSION[$key]);
}

unset($_SESSION['saved']);
if(file_exists(CACHE . 'install.txt')) {
unlink(CACHE . 'install.txt');
}

$locale['step_finish_desc'] = str_replace('$ADMIN_PANEL$', generateLink(str_replace('tools/', '',ADMIN_URL), $locale['step_finish_admin_panel'], true), $locale['step_finish_desc']);
$locale['step_finish_desc'] = str_replace('$HOMEPAGE$', generateLink(str_replace('tools/', '', BASE_URL), $locale['step_finish_homepage'], true), $locale['step_finish_desc']);
$locale['step_finish_desc'] = str_replace('$LINK$', generateLink('https://my-aac.org', 'https://my-aac.org', true), $locale['step_finish_desc']);

success($locale['step_finish_desc']);
success($locale['step_finish_desc']);

0 comments on commit 9c318f9

Please sign in to comment.