diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-11-29 06:42:53 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-11-29 06:42:53 +0000 |
commit | b2c5a8c864f9abd26c5cff8eb2421713cfb25841 (patch) | |
tree | 6de36dcb698911d84d2907720a96b91df21707fe /modules/system/system.install | |
parent | 8172877a62e7df25b0febc4b46dfa148af73f7db (diff) | |
download | brdo-b2c5a8c864f9abd26c5cff8eb2421713cfb25841.tar.gz brdo-b2c5a8c864f9abd26c5cff8eb2421713cfb25841.tar.bz2 |
#875674 by pwolanin, jbrown: Report DB version in Status report.
Diffstat (limited to 'modules/system/system.install')
-rw-r--r-- | modules/system/system.install | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/modules/system/system.install b/modules/system/system.install index ba16f8bdf..8a255ba82 100644 --- a/modules/system/system.install +++ b/modules/system/system.install @@ -188,6 +188,19 @@ function system_requirements($phase) { $requirements['database_extensions']['value'] = $t('Enabled'); } } + else { + // Database information. + $class = 'DatabaseTasks_' . Database::getConnection()->driver(); + $tasks = new $class(); + $requirements['database_system'] = array( + 'title' => $t('Database system'), + 'value' => $tasks->name(), + ); + $requirements['database_system_version'] = array( + 'title' => $t('Database system version'), + 'value' => Database::getConnection()->version(), + ); + } // Test PHP memory_limit $memory_limit = ini_get('memory_limit'); |