aboutsummaryrefslogtreecommitdiffstats
path: root/maintenance/protect.php
diff options
context:
space:
mode:
authorChad Horohoe <demon@users.mediawiki.org>2009-08-02 21:55:10 +0000
committerChad Horohoe <demon@users.mediawiki.org>2009-08-02 21:55:10 +0000
commit30468dbcf754c38a8f4e534951015159748776bc (patch)
tree679537c3bac19f4f764a6babaf80610c6c79c43a /maintenance/protect.php
parent5ff7ffe312d2881725293deb994c863103923271 (diff)
downloadmediawikicore-30468dbcf754c38a8f4e534951015159748776bc.tar.gz
mediawikicore-30468dbcf754c38a8f4e534951015159748776bc.zip
Don't put \n on the end of every error() call, just do it in error() itself. Still have to use on output(), because people like "Something...done" stuff.
Notes
Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/54240
Diffstat (limited to 'maintenance/protect.php')
-rw-r--r--maintenance/protect.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/maintenance/protect.php b/maintenance/protect.php
index d929211d1256..6606746f456f 100644
--- a/maintenance/protect.php
+++ b/maintenance/protect.php
@@ -46,9 +46,9 @@ class Protect extends Maintenance {
$wgUser = User::newFromName( $userName );
$restrictions = array( 'edit' => $protection, 'move' => $protection );
- $wgTitle = Title::newFromText( $args[0] );
+ $wgTitle = Title::newFromText( $this->getArg() );
if ( !$wgTitle ) {
- $this->error( "Invalid title\n", true );
+ $this->error( "Invalid title", true );
}
$wgArticle = new Article( $wgTitle );