From 9bb6920774e2dcefa0913a814f9a9aedd5379c65 Mon Sep 17 00:00:00 2001 From: Greg Sabino Mullane Date: Mon, 22 Sep 2008 03:15:17 +0000 Subject: [PATCH] Return numeric version only. --- includes/db/DatabasePostgres.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/db/DatabasePostgres.php b/includes/db/DatabasePostgres.php index 7a117e79a3..590c682d2a 100644 --- a/includes/db/DatabasePostgres.php +++ b/includes/db/DatabasePostgres.php @@ -1038,7 +1038,7 @@ class DatabasePostgres extends Database { /** * @return string wikitext of a link to the server software's web site */ - function getSoftwareLink() { + function getSoftwareLink() { return "[http://www.postgresql.org/ PostgreSQL]"; } @@ -1051,6 +1051,7 @@ class DatabasePostgres extends Database { if (!preg_match('/PostgreSQL (\d+\.\d+)(\S+)/', $version, $thisver)) { die("Could not determine the numeric version from $version!"); } + $version = $thisver[1].$thisver[2]; $this->numeric_version = $thisver[1]; return $version; } -- 2.20.1