Skip to content

Commit

Permalink
System Information (#19764)
Browse files Browse the repository at this point in the history
* System Information

We had the db version and the db collation but not the type
This PR adds the database type eg postgresql, mysql etc

* Update sysinfo.php

* rename and move

* rename
  • Loading branch information
brianteeman authored and Michael Babker committed Feb 26, 2018
1 parent 7ac8025 commit 3375f08
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions administrator/components/com_admin/models/sysinfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,7 @@ public function &getInfo()

$this->info = array(
'php' => php_uname(),
'dbserver' => $db->getServerType(),
'dbversion' => $db->getVersion(),
'dbcollation' => $db->getCollation(),
'dbconnectioncollation' => $db->getConnectionCollation(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,14 @@
<?php echo $this->info['php']; ?>
</td>
</tr>
<tr>
<td>
<strong><?php echo JText::_('COM_ADMIN_DATABASE_TYPE'); ?></strong>
</td>
<td>
<?php echo $this->info['dbserver']; ?>
</td>
</tr>
<tr>
<td>
<strong><?php echo JText::_('COM_ADMIN_DATABASE_VERSION'); ?></strong>
Expand Down
1 change: 1 addition & 0 deletions administrator/language/en-GB/en-GB.com_admin.ini
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ COM_ADMIN_CLEAR_RESULTS="Clear results"
COM_ADMIN_CONFIGURATION_FILE="Configuration File"
COM_ADMIN_DATABASE_COLLATION="Database Collation"
COM_ADMIN_DATABASE_CONNECTION_COLLATION="Database Connection Collation"
COM_ADMIN_DATABASE_TYPE="Database Type"
COM_ADMIN_DATABASE_VERSION="Database Version"
COM_ADMIN_DIRECTORY="Folder"
COM_ADMIN_DIRECTORY_PERMISSIONS="Folder Permissions"
Expand Down

0 comments on commit 3375f08

Please sign in to comment.