Initialize messages.
authorBrion Vibber <brion@users.mediawiki.org>
Wed, 3 Mar 2004 07:20:34 +0000 (07:20 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Wed, 3 Mar 2004 07:20:34 +0000 (07:20 +0000)
config/index.php

index 98c3616..3b45a38 100644 (file)
@@ -237,7 +237,10 @@ if( $conf->posted && ( 0 == count( $errs ) ) ) {
                $wgCommandLineMode = true;
                $wgUseDatabaseMessages = false; /* FIXME: For database failure */
                include_once( "Setup.php" );
+               include_once( "../maintenance/InitialiseMessages.inc" );
 
+               $wgTitle = Title::newFromText( "Installation script" );
+               
                if( $conf->Root ) {
                        $wgDatabase = Database::newFromParams( $wgDBserver, "root", $conf->RootPW, "", 1 );
                } else {
@@ -332,7 +335,11 @@ if( $conf->posted && ( 0 == count( $errs ) ) ) {
                        
                        # FIXME: Main page, logs
                        # FIXME: Initialize messages
-                       print "<li>(NYI: accounts, pages, messages)</li>\n";
+                       print "<li>(NYI: pages)</li>\n";
+                       
+                       print "<li>";
+                       initialiseMessages();
+                       print "</li>\n";
                        
                        if( $conf->Root ) {
                                # Grant user permissions