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
RELEASE-NOTES: Fix typo in CSSMin release note
[lhc/web/wiklou.git]
/
maintenance
/
edit.php
diff --git
a/maintenance/edit.php
b/maintenance/edit.php
index
4219ed0
..
60ed252
100644
(file)
--- a/
maintenance/edit.php
+++ b/
maintenance/edit.php
@@
-59,7
+59,7
@@
class EditCLI extends Maintenance {
$wgUser = User::newFromName( $userName );
}
if ( !$wgUser ) {
$wgUser = User::newFromName( $userName );
}
if ( !$wgUser ) {
- $this->
error( "Invalid username", true
);
+ $this->
fatalError( "Invalid username"
);
}
if ( $wgUser->isAnon() ) {
$wgUser->addToDatabase();
}
if ( $wgUser->isAnon() ) {
$wgUser->addToDatabase();
@@
-67,13
+67,13
@@
class EditCLI extends Maintenance {
$title = Title::newFromText( $this->getArg() );
if ( !$title ) {
$title = Title::newFromText( $this->getArg() );
if ( !$title ) {
- $this->
error( "Invalid title", true
);
+ $this->
fatalError( "Invalid title"
);
}
if ( $this->hasOption( 'nocreate' ) && !$title->exists() ) {
}
if ( $this->hasOption( 'nocreate' ) && !$title->exists() ) {
- $this->
error( "Page does not exist", true
);
+ $this->
fatalError( "Page does not exist"
);
} elseif ( $this->hasOption( 'createonly' ) && $title->exists() ) {
} elseif ( $this->hasOption( 'createonly' ) && $title->exists() ) {
- $this->
error( "Page already exists", true
);
+ $this->
fatalError( "Page already exists"
);
}
$page = WikiPage::factory( $title );
}
$page = WikiPage::factory( $title );
@@
-103,5
+103,5
@@
class EditCLI extends Maintenance {
}
}
}
}
-$maintClass =
"EditCLI"
;
+$maintClass =
EditCLI::class
;
require_once RUN_MAINTENANCE_IF_MAIN;
require_once RUN_MAINTENANCE_IF_MAIN;