Permalink
Browse files

Define reference variables for database checks

  • Loading branch information...
1 parent 527d9fa commit 8d942b138a8030d379e63910781a38c3c1b3043e @dregad dregad committed Nov 11, 2013
Showing with 5 additions and 0 deletions.
  1. +5 −0 admin/check/check_database_inc.php
View
5 admin/check/check_database_inc.php
@@ -154,6 +154,11 @@
}
$t_database_server_info = $g_db->ServerInfo();
+$t_db_version = $t_database_server_info['version'];
+preg_match('/^[0-9]+\.[0-9+]/', $t_db_version, $t_matches );
+$t_db_major_version = $t_matches[0];
+
+# MantisBT minimum version
check_print_info_row(
'Database server version',
htmlentities( $t_database_server_info['version'] )

0 comments on commit 8d942b1

Please sign in to comment.