X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Fedit.php;h=75ec12bfdd1da559d501170dbd856bd1ef0e29ad;hb=2d89bdf1182df1178b9aada67a080011d29e142c;hp=6bdb15d90b587ecabbd1c3d84dfcef81e5064f78;hpb=f7afda4643b3ba586498f226bf55de4ae4b80968;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/edit.php b/maintenance/edit.php index 6bdb15d90b..75ec12bfdd 100644 --- a/maintenance/edit.php +++ b/maintenance/edit.php @@ -54,8 +54,6 @@ class EditCLI extends Maintenance { $noRC = $this->hasOption( 'no-rc' ); $wgUser = User::newFromName( $userName ); - $context = RequestContext::getMain(); - $context->setUser( $wgUser ); if ( !$wgUser ) { $this->error( "Invalid username", true ); } @@ -67,7 +65,6 @@ class EditCLI extends Maintenance { if ( !$title ) { $this->error( "Invalid title", true ); } - $context->setTitle( $title ); if ( $this->hasOption( 'nocreate' ) && !$title->exists() ) { $this->error( "Page does not exist", true );