diff options
author | Brion Vibber <brion@users.mediawiki.org> | 2004-09-08 20:36:41 +0000 |
---|---|---|
committer | Brion Vibber <brion@users.mediawiki.org> | 2004-09-08 20:36:41 +0000 |
commit | 24619e4c665751ebac59ea959bd99e92bb10018c (patch) | |
tree | 2fb4522625b7a32a94b4fd376bfa8087d05eafc7 /includes/SpecialVersion.php | |
parent | 454c47247efba71b0d1c57bf4f4c3a3ff932b86e (diff) | |
download | mediawikicore-24619e4c665751ebac59ea959bd99e92bb10018c.tar.gz mediawikicore-24619e4c665751ebac59ea959bd99e92bb10018c.zip |
Add Database::getSoftwareLink() and Database::getServerVersion(), and use
those in Special:Version.
Fixes bug 388: Special:Version shows MySQL version when using PostgreSQL
http://bugzilla.wikipedia.org/show_bug.cgi?id=388
Notes
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/5161
Diffstat (limited to 'includes/SpecialVersion.php')
-rw-r--r-- | includes/SpecialVersion.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/includes/SpecialVersion.php b/includes/SpecialVersion.php index 47fe88647f66..30f2fe1aa50a 100644 --- a/includes/SpecialVersion.php +++ b/includes/SpecialVersion.php @@ -42,9 +42,12 @@ function wfSpecialVersion() { } $versions = array( "[http://wikipedia.sf.net/ MediaWiki]" => $wgVersion, - "[http://www.php.net/ PHP]" => phpversion() . " (" . php_sapi_name() . ")", - "[http://www.mysql.com/ MySQL]" => mysql_get_server_info() + "[http://www.php.net/ PHP]" => phpversion() . " (" . php_sapi_name() . ")" ); + + $dbr =& wfGetDB( DB_SLAVE ); + $dblink = $dbr->getSoftwareLink(); + $versions[$dblink] = $dbr->getServerVersion(); $out = ''; foreach( $versions as $module => $ver ) { |