From: Greg Sabino Mullane Date: Mon, 22 Sep 2008 03:15:17 +0000 (+0000) Subject: Return numeric version only. X-Git-Tag: 1.31.0-rc.0~45150 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=9bb6920774e2dcefa0913a814f9a9aedd5379c65;p=lhc%2Fweb%2Fwiklou.git Return numeric version only. --- 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; }