From c89a592f0b495eebc53350248195b328cb245a9e Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Sat, 15 Nov 2003 11:18:39 +0000 Subject: [PATCH] Bug fixes --- includes/Article.php | 4 ++-- includes/SpecialPreferences.php | 6 ------ 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/includes/Article.php b/includes/Article.php index 8bdcb7d2fd..2a126e44c8 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -986,9 +986,9 @@ $wgLang->recodeForEdit( $wpTextbox1 ) . $log = new LogPage( wfMsg( "protectlogpage" ), wfMsg( "protectlogtext" ) ); if ( $limit === "" ) { - $log->addEntry( wfMsg( "unprotectedarticle", $wgTitle->getPrefixedText() ), "" ); + $log->addEntry( wfMsg( "unprotectedarticle", $this->mTitle->getPrefixedText() ), "" ); } else { - $log->addEntry( wfMsg( "protectedarticle", $wgTitle->getPrefixedText() ), "" ); + $log->addEntry( wfMsg( "protectedarticle", $this->mTitle->getPrefixedText() ), "" ); } $wgOut->redirect( wfLocalUrl( $this->mTitle->getPrefixedURL() ) ); } diff --git a/includes/SpecialPreferences.php b/includes/SpecialPreferences.php index 5149535730..6c0c396d84 100644 --- a/includes/SpecialPreferences.php +++ b/includes/SpecialPreferences.php @@ -181,12 +181,6 @@ function wfSpecialPreferences() $r1 .= "\n"; } - $name = str_replace( "_", " ", $ns[$i] ); - if ( "" == $name ) { $name = wfMsg( "blanknamespace" ); } - - if ( 0 != $i ) { $r1 .= " "; } - $r1 .= "\n"; } return $r1; -- 2.20.1