From: Tim Starling Date: Fri, 12 Dec 2003 00:25:29 +0000 (+0000) Subject: IP substitution in blockedtext X-Git-Tag: 1.3.0beta1~1255 X-Git-Url: http://git.cyclocoop.org/data/%7BGarradin/WEBSITE%7D?a=commitdiff_plain;h=82bf050027a12772b6b8940a4e45dcd5e74ebee5;p=lhc%2Fweb%2Fwiklou.git IP substitution in blockedtext --- diff --git a/includes/EditPage.php b/includes/EditPage.php index dd2bd08dad..efe60d494f 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -339,12 +339,13 @@ $wgLang->recodeForEdit( $wpTextbox1 ) . $id = $wgUser->blockedBy(); $reason = $wgUser->blockedFor(); + $ip = getenv( "REMOTE_ADDR" ); $name = User::whoIs( $id ); $link = "[[" . $wgLang->getNsText( Namespace::getUser() ) . ":{$name}|{$name}]]"; - $wgOut->addWikiText( wfMsg( "blockedtext", $link, $reason ) ); + $wgOut->addWikiText( wfMsg( "blockedtext", $link, $reason, $ip ) ); $wgOut->returnToMain( false ); }