diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-03-16 08:25:49 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-03-16 08:25:49 +0000 |
commit | c05a1103e73a54e3046c5aafc5daaa0c72d460f2 (patch) | |
tree | adb8562623569656a8cf667b11945bf214e2e1f3 /core | |
parent | c15e4c61a380094314290e0b7aec4646fabd0abc (diff) |
Use a query to get the database version. Newer versions of PHP bomb
if you're using mysqli, and it asks for a connection which we can't easily get
from Kohana.
Diffstat (limited to 'core')
-rw-r--r-- | core/views/admin_block_platform.html.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/views/admin_block_platform.html.php b/core/views/admin_block_platform.html.php index 09fc0515..272e20c1 100644 --- a/core/views/admin_block_platform.html.php +++ b/core/views/admin_block_platform.html.php @@ -10,6 +10,6 @@ <?= t("PHP: %php_version", array("php_version" => phpversion())) ?> </li> <li> - <?= t("MySQL: %mysql_version", array("mysql_version" => mysql_get_server_info())) ?> + <?= t("MySQL: %mysql_version", array("mysql_version" => Database::instance()->query("SELECT version() as V")->current()->V)) ?> </li> </ul> |