[TASK] Add webserver to SystemInformationToolbaritem 83/38483/2
authorFrank Nägler <typo3@naegler.net>
Sat, 4 Apr 2015 17:45:15 +0000 (19:45 +0200)
committerAndreas Fernandez <andreas.fernandez@aspedia.de>
Sat, 4 Apr 2015 18:25:29 +0000 (20:25 +0200)
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 <mathias.schreiber@wmdb.de>
Tested-by: Mathias Schreiber <mathias.schreiber@wmdb.de>
Reviewed-by: Andreas Fernandez <andreas.fernandez@aspedia.de>
Tested-by: Andreas Fernandez <andreas.fernandez@aspedia.de>
typo3/sysext/backend/Classes/Backend/ToolbarItems/SystemInformationToolbarItem.php
typo3/sysext/lang/locallang_core.xlf

index 22786dd..7dbe5e0 100644 (file)
@@ -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();
@@ -177,6 +178,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
         *
         * @return void
@@ -333,4 +345,4 @@ class SystemInformationToolbarItem extends AbstractToolbarItem implements Toolba
                return $this->signalSlotDispatcher;
        }
 
-}
\ No newline at end of file
+}
index ab2e900..1a29755 100644 (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>