X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Fedit.php;h=75ec12bfdd1da559d501170dbd856bd1ef0e29ad;hb=25505f7839cf91dd8c7f3cc6f98f8f7de78e3abe;hp=6bdb15d90b587ecabbd1c3d84dfcef81e5064f78;hpb=1a06bdf6c7b3c54926d0bea67d22fe1b6dc25d56;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 );