diff --git a/application/forms/Setup/SummaryPage.php b/application/forms/Setup/SummaryPage.php index c44899b58..c020f4908 100644 --- a/application/forms/Setup/SummaryPage.php +++ b/application/forms/Setup/SummaryPage.php @@ -11,6 +11,13 @@ use Icinga\Web\Form; */ class SummaryPage extends Form { + /** + * The title of what is being installed + * + * @var string + */ + protected $title; + /** * The summary to show * @@ -27,6 +34,26 @@ class SummaryPage extends Form $this->setViewScript('form/setup-summary.phtml'); } + /** + * Set the title of what is being installed + * + * @param string $title + */ + public function setSubjectTitle($title) + { + $this->title = $title; + } + + /** + * Return the title of what is being installed + * + * @return string + */ + public function getSubjectTitle() + { + return $this->title; + } + /** * Set the summary to show * diff --git a/application/views/scripts/form/setup-summary.phtml b/application/views/scripts/form/setup-summary.phtml index de4f5141e..3a1b1b5bc 100644 --- a/application/views/scripts/form/setup-summary.phtml +++ b/application/views/scripts/form/setup-summary.phtml @@ -3,10 +3,13 @@ use Icinga\Web\Wizard; ?> -

getSubjectTitle() ); ?>

getSummary() as $pageHtml): ?> diff --git a/library/Icinga/Application/WebSetup.php b/library/Icinga/Application/WebSetup.php index 9b2ef9769..c2a609f23 100644 --- a/library/Icinga/Application/WebSetup.php +++ b/library/Icinga/Application/WebSetup.php @@ -112,6 +112,7 @@ class WebSetup extends Wizard implements SetupWizard $page->setDatabasePrivileges($this->databaseSetupPrivileges); $page->setResourceConfig($this->getPageData('setup_db_resource')); } elseif ($page->getName() === 'setup_summary') { + $page->setSubjectTitle('Icinga Web 2'); $page->setSummary($this->getInstaller()->getSummary()); } elseif ($page->getName() === 'setup_db_resource') { $ldapData = $this->getPageData('setup_ldap_resource');