From: Greg Sabino Mullane Date: Fri, 18 Aug 2006 16:24:48 +0000 (+0000) Subject: Ignore all but errors when importing. X-Git-Tag: 1.31.0-rc.0~55954 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=57f87f7093775474455bc218c2728ac8e8620518;p=lhc%2Fweb%2Fwiklou.git Ignore all but errors when importing. --- 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; }