Localisation updates for core messages from Betawiki
[lhc/web/wiklou.git] / config / index.php
index cd514d2..3e591b4 100644 (file)
@@ -839,6 +839,7 @@ if( $conf->posted && ( 0 == count( $errs ) ) ) {
                                        $errs["RootPW"] = "and password";
                                        continue;
                                }
+                               $wgDatabase->initial_setup($conf->RootPW, 'postgres');
                        }
                        echo( "<li>Attempting to connect to database \"$wgDBname\" as \"$wgDBuser\"..." );
                        $wgDatabase = $dbc->newFromParams($wgDBserver, $wgDBuser, $wgDBpassword, $wgDBname, 1);
@@ -847,6 +848,7 @@ if( $conf->posted && ( 0 == count( $errs ) ) ) {
                        } else {
                                $myver = $wgDatabase->getServerVersion();
                        }
+                       $wgDatabase->initial_setup('', $wgDBname);
                }
 
                if ( !$wgDatabase->isOpen() ) {
@@ -1670,9 +1672,8 @@ if ( \$wgCommandLineMode ) {
 
 # When you make changes to this configuration file, this will make
 # sure that cached pages are cleared.
-\$configdate = gmdate( 'YmdHis', @filemtime( __FILE__ ) );
-\$wgCacheEpoch = max( \$wgCacheEpoch, \$configdate );
-       "; ## End of setting the $localsettings string
+\$wgCacheEpoch = max( \$wgCacheEpoch, gmdate( 'YmdHis', @filemtime( __FILE__ ) ) );
+"; ## End of setting the $localsettings string
 
        // Keep things in Unix line endings internally;
        // the system will write out as local text type.