From: Sam Reed Date: Fri, 23 Jul 2010 20:41:53 +0000 (+0000) Subject: Add missing $wgDBname global X-Git-Tag: 1.31.0-rc.0~35983 X-Git-Url: http://git.cyclocoop.org/ecrire?a=commitdiff_plain;h=ffa27f26f1c461adc2fc140a6024e2963f9d07d0;p=lhc%2Fweb%2Fwiklou.git Add missing $wgDBname global --- 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);