Skip to content

Commit

Permalink
added message to do db upgrade after install
Browse files Browse the repository at this point in the history
  • Loading branch information
OpenXE committed Jul 10, 2023
1 parent 1be7ba6 commit 2eabd85
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 14 deletions.
19 changes: 5 additions & 14 deletions www/pages/welcome.php
Original file line number Diff line number Diff line change
Expand Up @@ -3034,18 +3034,12 @@ protected function HandleStartClickByClick()
}
}
*/
$subHeadline = 'Es kann nun losgehen.';
if($isAdminAdmin && !empty(erpAPI::Ioncube_Property('isdevelopmentversion'))) {
$subHeadline = 'Es handelt sich hier um eine Development-Version.
Diese ist nicht für den produktiven Einsatz gedacht.';
}

/** @var SystemTemplates $systemTemplates */
$showExampleImport = !empty(erpAPI::Ioncube_Property('testlizenz'))
&& !empty(erpAPI::Ioncube_Property('iscloud'))
&& $this->app->erp->RechteVorhanden('systemtemplate', 'list')
&& ($systemTemplates = $this->app->loadModule('systemtemplates')) !== null
&& $systemTemplates->canInstallExampleData(false);
if($isAdminAdmin) {
$subHeadline = 'Bitte nach der Installation das <a href="index.php?module=upgrade" target="_blank">Datenbank-Upgrade</a> durchführen.';
} else {
$subHeadline = 'Es kann nun losgehen.';
}

$lastPage = [
'type' => 'defaultPage',
Expand All @@ -3062,9 +3056,6 @@ protected function HandleStartClickByClick()
if($showExampleImport) {
$lastPage['subHeadline'] .= '<br /><a href="index.php?module=systemtemplates&action=list">Beispieldaten einspielen</a>';
}
if($isAdminAdmin && $this->app->erp->ModulVorhanden('learningdashboard')){
$lastPage['ctaButtons']['link'] = 'index.php?module=learningdashboard&action=list';
}

$pages[] = $lastPage;

Expand Down
2 changes: 2 additions & 0 deletions www/setup/setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@
<br><br>
<center>
<a href=\"$weburllink\">Anmelden mit Benutzer: <i>admin</i> und Passwort: <i>admin</i></a>
<br><br>
Bitte nach der Installation das <a href=\"".$weburllink."index.php?module=upgrade\" target=\"_blank\">Datenbank-Upgrade</a> durchführen.</a>
</center>
");
}else{
Expand Down

0 comments on commit 2eabd85

Please sign in to comment.