Commit 280c94b1 authored by Frank Nägler's avatar Frank Nägler Committed by Andreas Fernandez
Browse files

[TASK] Add webserver to SystemInformationToolbaritem

Add the name of the webserver software to the SystemInformationToolbaritem

Resolves: #66273
Releases: master
Change-Id: Ibcdaf892c9aa80a2abdf9973aa53079ddf0a9060
Reviewed-on: http://review.typo3.org/38483


Reviewed-by: Mathias Schreiber's avatarMathias Schreiber <mathias.schreiber@wmdb.de>
Tested-by: Mathias Schreiber's avatarMathias Schreiber <mathias.schreiber@wmdb.de>
Reviewed-by: default avatarAndreas Fernandez <andreas.fernandez@aspedia.de>
Tested-by: default avatarAndreas Fernandez <andreas.fernandez@aspedia.de>
parent 133e0e9f
......@@ -74,6 +74,7 @@ class SystemInformationToolbarItem extends AbstractToolbarItem implements Toolba
$pageRenderer = $this->getPageRenderer();
$pageRenderer->loadRequireJsModule('TYPO3/CMS/Backend/Toolbar/SystemInformationMenu');
$this->getWebServer();
$this->getPhpVersion();
$this->getDatabase();
$this->getApplicationContext();
......@@ -176,6 +177,17 @@ class SystemInformationToolbarItem extends AbstractToolbarItem implements Toolba
);
}
/**
* Gets the webserver software
*/
protected function getWebServer() {
$this->systemInformation[] = array(
'title' => $this->getLanguageService()->sL('LLL:EXT:lang/locallang_core.xlf:toolbarItems.sysinfo.webserver', TRUE),
'value' => htmlspecialchars($_SERVER['SERVER_SOFTWARE']),
'icon' => '<span class="fa fa-server"></span>'
);
}
/**
* Emits the "getSystemInformation" signal
*
......@@ -333,4 +345,4 @@ class SystemInformationToolbarItem extends AbstractToolbarItem implements Toolba
return $this->signalSlotDispatcher;
}
}
\ No newline at end of file
}
......@@ -1084,6 +1084,9 @@ Would you like to save now in order to refresh the display?</source>
<trans-unit id="toolbarItems.sysinfo.operatingsystem">
<source>Operating System</source>
</trans-unit>
<trans-unit id="toolbarItems.sysinfo.webserver">
<source>Webserver</source>
</trans-unit>
<trans-unit id="tabs.closeAll">
<source>Close All Tabs</source>
</trans-unit>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment