From ffa27f26f1c461adc2fc140a6024e2963f9d07d0 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Fri, 23 Jul 2010 20:41:53 +0000 Subject: [PATCH] Add missing $wgDBname global --- includes/db/DatabasePostgres.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/db/DatabasePostgres.php b/includes/db/DatabasePostgres.php index 226803fb57..97e7f2001f 100644 --- a/includes/db/DatabasePostgres.php +++ b/includes/db/DatabasePostgres.php @@ -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); -- 2.20.1