Index: trunk/phase3/includes/db/DatabasePostgres.php |
— | — | @@ -564,6 +564,7 @@ |
565 | 565 | $SQL = "SELECT 1 FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (n.oid = c.relnamespace) ". |
566 | 566 | "WHERE relname = 'pg_pltemplate' AND nspname='pg_catalog'"; |
567 | 567 | $rows = $this->numRows($this->doQuery($SQL)); |
| 568 | + global $wgDBname; |
568 | 569 | if ($rows >= 1) { |
569 | 570 | $olde = error_reporting(0); |
570 | 571 | error_reporting($olde - E_WARNING); |