r41138 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r41137‎ | r41138 | r41139 >
Date:03:15, 22 September 2008
Author:greg
Status:old
Tags:
Comment:
Return numeric version only.
Modified paths:
  • /trunk/phase3/includes/db/DatabasePostgres.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/db/DatabasePostgres.php
@@ -1038,7 +1038,7 @@
10391039 /**
10401040 * @return string wikitext of a link to the server software's web site
10411041 */
1042 - function getSoftwareLink() {
 1042+ function getSoftwareLink() {
10431043 return "[http://www.postgresql.org/ PostgreSQL]";
10441044 }
10451045
@@ -1051,6 +1051,7 @@
10521052 if (!preg_match('/PostgreSQL (\d+\.\d+)(\S+)/', $version, $thisver)) {
10531053 die("Could not determine the numeric version from $version!");
10541054 }
 1055+ $version = $thisver[1].$thisver[2];
10551056 $this->numeric_version = $thisver[1];
10561057 return $version;
10571058 }