r48739 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r48738‎ | r48739 | r48740 >
Date:13:37, 24 March 2009
Author:greg
Status:ok
Tags:
Comment:
We can rely on usesuper and not just usecreatedb here.
Modified paths:
  • /trunk/phase3/includes/db/DatabasePostgres.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/db/DatabasePostgres.php
@@ -257,7 +257,7 @@
258258 print "<li>Database \"" . htmlspecialchars( $wgDBname ) . "\" already exists, skipping database creation.</li>";
259259 }
260260 else {
261 - if ($perms < 2) {
 261+ if ($perms < 1) {
262262 print "<li>ERROR: the user \"" . htmlspecialchars( $wgDBsuperuser ) . "\" cannot create databases. ";
263263 print 'Please use a different Postgres user.</li>';
264264 dieout('</ul>');

Status & tagging log