From 34b4ec25224034fa467d889ee1b4f4ecca6adf51 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Sat, 11 Sep 2004 10:57:08 +0000 Subject: [PATCH] Set the user text on the initial main page to "MediaWiki default" like the messages instead of leaving it blank, which results in a strange contribs link in history. --- config/index.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/config/index.php b/config/index.php index 7aede22412..6adbc3fb3d 100644 --- a/config/index.php +++ b/config/index.php @@ -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 "
  • ";
    -- 
    2.20.1