dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Separate select() parameter summary from detail"
[lhc/web/wiklou.git]
/
maintenance
/
edit.php
diff --git
a/maintenance/edit.php
b/maintenance/edit.php
index
6bdb15d
..
75ec12b
100644
(file)
--- 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 );
$noRC = $this->hasOption( 'no-rc' );
$wgUser = User::newFromName( $userName );
- $context = RequestContext::getMain();
- $context->setUser( $wgUser );
if ( !$wgUser ) {
$this->error( "Invalid username", true );
}
if ( !$wgUser ) {
$this->error( "Invalid username", true );
}
@@
-67,7
+65,6
@@
class EditCLI extends Maintenance {
if ( !$title ) {
$this->error( "Invalid title", true );
}
if ( !$title ) {
$this->error( "Invalid title", true );
}
- $context->setTitle( $title );
if ( $this->hasOption( 'nocreate' ) && !$title->exists() ) {
$this->error( "Page does not exist", true );
if ( $this->hasOption( 'nocreate' ) && !$title->exists() ) {
$this->error( "Page does not exist", true );