From: Brion Vibber Date: Wed, 3 Mar 2004 07:20:34 +0000 (+0000) Subject: Initialize messages. X-Git-Tag: 1.3.0beta1~878 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/ajouter.php?a=commitdiff_plain;h=78c0d3d0dfa0bcb251e633e5116de3a618103a92;p=lhc%2Fweb%2Fwiklou.git Initialize messages. --- diff --git a/config/index.php b/config/index.php index 98c3616316..3b45a38a2a 100644 --- a/config/index.php +++ b/config/index.php @@ -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 "
  • (NYI: accounts, pages, messages)
  • \n"; + print "
  • (NYI: pages)
  • \n"; + + print "
  • "; + initialiseMessages(); + print "
  • \n"; if( $conf->Root ) { # Grant user permissions