Ignore all but errors when importing.
authorGreg Sabino Mullane <greg@users.mediawiki.org>
Fri, 18 Aug 2006 16:24:48 +0000 (16:24 +0000)
committerGreg Sabino Mullane <greg@users.mediawiki.org>
Fri, 18 Aug 2006 16:24:48 +0000 (16:24 +0000)
includes/DatabasePostgres.php

index f5fe6b2..2ff33a3 100644 (file)
@@ -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;
        }