Set the user text on the initial main page to "MediaWiki default" like the
authorBrion Vibber <brion@users.mediawiki.org>
Sat, 11 Sep 2004 10:57:08 +0000 (10:57 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sat, 11 Sep 2004 10:57:08 +0000 (10:57 +0000)
messages instead of leaving it blank, which results in a strange contribs
link in history.

config/index.php

index 7aede22..6adbc3f 100644 (file)
@@ -548,9 +548,10 @@ if( $conf->posted && ( 0 == count( $errs ) ) ) {
 
                        $titleobj = Title::newFromText( wfMsgNoDB( "mainpage" ) );
                        $title = $titleobj->getDBkey();
-                       $sql = "INSERT INTO cur (cur_namespace,cur_title,cur_text,cur_timestamp,inverse_timestamp,cur_touched) " .
+                       $sql = "INSERT INTO cur (cur_namespace,cur_title,cur_text,cur_timestamp,inverse_timestamp,cur_touched,cur_user,cur_user_text) " .
                          "VALUES (0,'$title','" .
-                         wfStrencode( wfMsg( "mainpagetext" ) . "\n\n" . wfMsg( "mainpagedocfooter" ) ) . "','$now','$won','$now')";
+                         wfStrencode( wfMsg( "mainpagetext" ) . "\n\n" . wfMsg( "mainpagedocfooter" ) ) .
+                         "','$now','$won','$now',0,'MediaWiki default')";
                        $wgDatabase->query( $sql, $fname );
 
                        print "<li><pre>";