summaryrefslogtreecommitdiff
path: root/installer/installer.php
diff options
context:
space:
mode:
authorAndy Staudacher <andy.st@gmail.com>2009-08-30 18:27:40 -0700
committerAndy Staudacher <andy.st@gmail.com>2009-08-30 18:27:40 -0700
commite7f5e0a9a3a19d535a69e19c4527800096ae1aaa (patch)
tree15662d3291b18ae0aefa6b2cea04d2f2fcf54740 /installer/installer.php
parentdf38a890a64dd33eafe3aed51ce8fde732cf8b8b (diff)
parent31dcdcc6ad6ce47c03265f3d6e499774a17ff727 (diff)
Merge commit 'upstream/master'
Conflicts: modules/gallery/views/l10n_client.html.php modules/organize/views/organize_tree.html.php modules/server_add/helpers/server_add_event.php
Diffstat (limited to 'installer/installer.php')
-rw-r--r--installer/installer.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/installer/installer.php b/installer/installer.php
index 456cffaa..50657d80 100644
--- a/installer/installer.php
+++ b/installer/installer.php
@@ -104,11 +104,13 @@ class installer {
mysql_select_db($config["dbname"]);
}
- static function verify_version($config) {
+ static function verify_mysql_version($config) {
+ return version_compare(installer::mysql_version($config), "5.0.0", ">=");
+ }
+
+ static function mysql_version($config) {
$result = mysql_query("SHOW VARIABLES WHERE variable_name = \"version\"");
- $row = mysql_fetch_object($result);
- $version = substr($row->Value, 0, strpos($row->Value, "-"));
- return version_compare($version, "5.0.0", ">=");
+ return $row->Value;
}
static function db_empty($config) {