mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-06-16 23:19:53 -04:00
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.
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user