dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0fc566e
)
Revert r66977 (removing $wgTitle from edit.php). This doesn't break core, but could...
author
Chad Horohoe
<demon@users.mediawiki.org>
Sun, 6 Feb 2011 22:36:33 +0000
(22:36 +0000)
committer
Chad Horohoe
<demon@users.mediawiki.org>
Sun, 6 Feb 2011 22:36:33 +0000
(22:36 +0000)
maintenance/edit.php
patch
|
blob
|
history
diff --git
a/maintenance/edit.php
b/maintenance/edit.php
index
0e82426
..
40623af
100644
(file)
--- a/
maintenance/edit.php
+++ b/
maintenance/edit.php
@@
-36,7
+36,7
@@
class EditCLI extends Maintenance {
}
public function execute() {
}
public function execute() {
- global $wgUser;
+ global $wgUser
, $wgTitle
;
$userName = $this->getOption( 'u', 'Maintenance script' );
$summary = $this->getOption( 's', '' );
$userName = $this->getOption( 'u', 'Maintenance script' );
$summary = $this->getOption( 's', '' );
@@
-53,12
+53,12
@@
class EditCLI extends Maintenance {
$wgUser->addToDatabase();
}
$wgUser->addToDatabase();
}
- $
t
itle = Title::newFromText( $this->getArg() );
- if ( !$
t
itle ) {
+ $
wgT
itle = Title::newFromText( $this->getArg() );
+ if ( !$
wgT
itle ) {
$this->error( "Invalid title", true );
}
$this->error( "Invalid title", true );
}
- $article = new Article( $
t
itle );
+ $article = new Article( $
wgT
itle );
# Read the text
$text = $this->getStdin( Maintenance::STDIN_ALL );
# Read the text
$text = $this->getStdin( Maintenance::STDIN_ALL );