From: Platonides Date: Sat, 21 Aug 2010 14:53:39 +0000 (+0000) Subject: Follow up r71289. getServerVersion() call was needed to initialise numeric_version. X-Git-Tag: 1.31.0-rc.0~35408 X-Git-Url: https://git.cyclocoop.org/%28%28?a=commitdiff_plain;h=48d6ddfee8f27d1382a788f8d756a272cbf3defd;p=lhc%2Fweb%2Fwiklou.git Follow up r71289. getServerVersion() call was needed to initialise numeric_version. In fact, we can use getServerVersion() here. --- diff --git a/maintenance/updaters.inc b/maintenance/updaters.inc index ca18457311..55bdd77ec7 100644 --- a/maintenance/updaters.inc +++ b/maintenance/updaters.inc @@ -1210,8 +1210,8 @@ END; function do_postgres_updates() { global $wgDatabase, $wgDBmwschema, $wgDBts2schema, $wgDBuser; - # # Gather version numbers in case we need them - $numver = $wgDatabase->numeric_version; # # X.Y e.g. 8.3 + # Gather version numbers in case we need them + $numver = $wgDatabase->getServerVersion(); # Just in case their LocalSettings.php does not have this: if ( !isset( $wgDBmwschema ) ) {