Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
b5ba248e
Commit
b5ba248e
authored
Sep 05, 2006
by
Neil Drumm
Browse files
#81903
by davemicc, m3avrck, and zoeloelip. Fix status checks for MySQLi.
parent
0fca0371
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/database.mysqli.inc
View file @
b5ba248e
...
...
@@ -19,16 +19,18 @@
* Report database status.
*/
function
db_status_report
()
{
global
$active_db
;
$t
=
get_t
();
$info
=
mysqli_get_server_info
(
$
connection
);
$info
=
mysqli_get_server_info
(
$
active_db
);
$form
[
'mysql'
]
=
array
(
'title'
=>
$t
(
'MySQL database'
),
'value'
=>
(
$phase
==
'runtime'
)
?
l
(
$info
,
'admin/logs/status/sql'
)
:
$info
,
);
// Extract version number
list
(
$version
)
=
explode
(
'-'
,
mysqli_get_server_info
(
$connection
)
);
list
(
$version
)
=
explode
(
'-'
,
$info
);
if
(
version_compare
(
$version
,
DRUPAL_MINIMUM_MYSQL
)
<
0
)
{
$form
[
'mysql'
][
'severity'
]
=
REQUIREMENT_ERROR
;
$form
[
'mysql'
][
'description'
]
=
$t
(
'Your MySQL Server is too old. Drupal requires at least MySQL %version.'
,
array
(
'%version'
=>
DRUPAL_MINIMUM_MYSQL
));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment