From 57f87f7093775474455bc218c2728ac8e8620518 Mon Sep 17 00:00:00 2001 From: Greg Sabino Mullane Date: Fri, 18 Aug 2006 16:24:48 +0000 Subject: [PATCH] Ignore all but errors when importing. --- includes/DatabasePostgres.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/includes/DatabasePostgres.php b/includes/DatabasePostgres.php index f5fe6b2e82..2ff33a3ba6 100644 --- a/includes/DatabasePostgres.php +++ b/includes/DatabasePostgres.php @@ -293,6 +293,12 @@ class DatabasePostgres extends Database { define( "POSTGRES_SEARCHPATH", $path ); }} + global $wgCommandLineMode; + ## If called from the command-line (e.g. importDump), only show errors + if ($wgCommandLineMode) { + $this->doQuery("SET client_min_messages = 'ERROR'"); + } + return $this->mConn; } -- 2.20.1