Add missing $wgDBname global
authorSam Reed <reedy@users.mediawiki.org>
Fri, 23 Jul 2010 20:41:53 +0000 (20:41 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Fri, 23 Jul 2010 20:41:53 +0000 (20:41 +0000)
includes/db/DatabasePostgres.php

index 226803f..97e7f20 100644 (file)
@@ -564,6 +564,7 @@ class DatabasePostgres extends DatabaseBase {
                        $SQL = "SELECT 1 FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (n.oid = c.relnamespace) ".
                                "WHERE relname = 'pg_pltemplate' AND nspname='pg_catalog'";
                        $rows = $this->numRows($this->doQuery($SQL));
+            global $wgDBname;
                        if ($rows >= 1) {
                        $olde = error_reporting(0);
                                error_reporting($olde - E_WARNING);