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 "jquery.makeCollapsible: Remove useless debug logging"
[lhc/web/wiklou.git]
/
maintenance
/
edit.php
diff --git
a/maintenance/edit.php
b/maintenance/edit.php
index
7fca651
..
7c24f0f
100644
(file)
--- a/
maintenance/edit.php
+++ b/
maintenance/edit.php
@@
-52,6
+52,8
@@
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 );
}
@@
-63,6
+65,7
@@
class EditCLI extends Maintenance {
if ( !$wgTitle ) {
$this->error( "Invalid title", true );
}
if ( !$wgTitle ) {
$this->error( "Invalid title", true );
}
+ $context->setTitle( $wgTitle );
$page = WikiPage::factory( $wgTitle );
$page = WikiPage::factory( $wgTitle );