summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2024-01-15 13:45:12 +0100
committerSimon Rettberg2024-01-15 13:45:12 +0100
commit6bcb2c85fa5e0eb4767c95a42f7e15a60a737f63 (patch)
tree6acbf20f9443db43d9c0cf419ca4c761beac3e9b
parent[serversetup-bwlp-ipxe] Move PXELinux classes to own files (diff)
downloadslx-admin-6bcb2c85fa5e0eb4767c95a42f7e15a60a737f63.tar.gz
slx-admin-6bcb2c85fa5e0eb4767c95a42f7e15a60a737f63.tar.xz
slx-admin-6bcb2c85fa5e0eb4767c95a42f7e15a60a737f63.zip
[serversetup-bwlp-ipxe] Call parent constructor IPxeMenu
-rw-r--r--modules-available/serversetup-bwlp-ipxe/inc/ipxemenu.inc.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/modules-available/serversetup-bwlp-ipxe/inc/ipxemenu.inc.php b/modules-available/serversetup-bwlp-ipxe/inc/ipxemenu.inc.php
index ddbce00d..3ffecba1 100644
--- a/modules-available/serversetup-bwlp-ipxe/inc/ipxemenu.inc.php
+++ b/modules-available/serversetup-bwlp-ipxe/inc/ipxemenu.inc.php
@@ -200,11 +200,14 @@ class IPxeMenu
class EmptyIPxeMenu extends IPxeMenu
{
- /** @noinspection PhpMissingParentConstructorInspection */
public function __construct()
{
- $this->title = 'No menu defined';
- $this->menuid = -1;
+ parent::__construct([
+ 'menuid' => -1,
+ 'timeoutms' => 120,
+ 'defaultentryid' => null,
+ 'title' => 'No menu defined',
+ ]);
$this->items[] = new MenuEntry([
'title' => 'Please create a menu in Server-Setup first'
]);