Bug fixes
authorTim Starling <tstarling@users.mediawiki.org>
Sat, 15 Nov 2003 11:18:39 +0000 (11:18 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Sat, 15 Nov 2003 11:18:39 +0000 (11:18 +0000)
includes/Article.php
includes/SpecialPreferences.php

index 8bdcb7d..2a126e4 100644 (file)
@@ -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() ) );
        }
index 5149535..6c0c396 100644 (file)
@@ -181,12 +181,6 @@ function wfSpecialPreferences()
                        $r1 .= "<label><input type=checkbox value=\"1\" name=\"" .
                          "wpNs$i\"{$checked}>{$name}</label>\n";
                }
-               $name = str_replace( "_", " ", $ns[$i] );
-               if ( "" == $name ) { $name = wfMsg( "blanknamespace" ); }
-
-               if ( 0 != $i ) { $r1 .= " "; }
-               $r1 .= "<label><input type=checkbox value=\"1\" name=\"" .
-                 "wpNs{$i}\"{$checked}>{$name}</label>\n";
        }
        
        return $r1;