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:
8d51ba4
)
edit.php: got rid of $wgTitle
author
Max Semenik
<maxsem@users.mediawiki.org>
Thu, 27 May 2010 18:04:08 +0000
(18:04 +0000)
committer
Max Semenik
<maxsem@users.mediawiki.org>
Thu, 27 May 2010 18:04:08 +0000
(18:04 +0000)
maintenance/edit.php
patch
|
blob
|
history
diff --git
a/maintenance/edit.php
b/maintenance/edit.php
index
500af5a
..
7e4b2f7
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, $wg
Title, $wg
Article;
+ global $wgUser, $wgArticle;
$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();
}
- $
wgT
itle = Title::newFromText( $this->getArg() );
- if ( !$
wgT
itle ) {
+ $
t
itle = Title::newFromText( $this->getArg() );
+ if ( !$
t
itle ) {
$this->error( "Invalid title", true );
}
$this->error( "Invalid title", true );
}
- $wgArticle = new Article( $
wgT
itle );
+ $wgArticle = new Article( $
t
itle );
# Read the text
$text = $this->getStdin( Maintenance::STDIN_ALL );
# Read the text
$text = $this->getStdin( Maintenance::STDIN_ALL );