From: Greg Sabino Mullane Date: Tue, 24 Mar 2009 13:37:50 +0000 (+0000) Subject: We can rely on usesuper and not just usecreatedb here. X-Git-Tag: 1.31.0-rc.0~42395 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/journal.php?a=commitdiff_plain;h=dbd2d32f30bd4649c9a8740ce5ebc7271a32d27c;p=lhc%2Fweb%2Fwiklou.git We can rely on usesuper and not just usecreatedb here. --- diff --git a/includes/db/DatabasePostgres.php b/includes/db/DatabasePostgres.php index 018aabf1db..bc16bdbc56 100644 --- a/includes/db/DatabasePostgres.php +++ b/includes/db/DatabasePostgres.php @@ -257,7 +257,7 @@ class DatabasePostgres extends Database { print "
  • Database \"" . htmlspecialchars( $wgDBname ) . "\" already exists, skipping database creation.
  • "; } else { - if ($perms < 2) { + if ($perms < 1) { print "
  • ERROR: the user \"" . htmlspecialchars( $wgDBsuperuser ) . "\" cannot create databases. "; print 'Please use a different Postgres user.
  • '; dieout('');