X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;ds=sidebyside;f=maintenance%2Fedit.php;h=75ec12bfdd1da559d501170dbd856bd1ef0e29ad;hb=25b73462a10fa359e917926cab49bf9bc5575ee5;hp=6bdb15d90b587ecabbd1c3d84dfcef81e5064f78;hpb=6abd85ca9210551ad8f09d2d2424350fc0b21cb3;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 );