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 "Remove empty RevisionRecordTest"
[lhc/web/wiklou.git]
/
maintenance
/
pageExists.php
diff --git
a/maintenance/pageExists.php
b/maintenance/pageExists.php
index
f414383
..
24ec8cb
100644
(file)
--- a/
maintenance/pageExists.php
+++ b/
maintenance/pageExists.php
@@
-27,7
+27,7
@@
require_once __DIR__ . '/Maintenance.php';
class PageExists extends Maintenance {
public function __construct() {
parent::__construct();
class PageExists extends Maintenance {
public function __construct() {
parent::__construct();
- $this->
mDescription = "Report whether a specific page exists"
;
+ $this->
addDescription( 'Report whether a specific page exists' )
;
$this->addArg( 'title', 'Page title to check whether it exists' );
}
$this->addArg( 'title', 'Page title to check whether it exists' );
}
@@
-45,7
+45,7
@@
class PageExists extends Maintenance {
$code = 1;
}
$this->output( $text );
$code = 1;
}
$this->output( $text );
-
$this->error( '',
$code );
+
exit(
$code );
}
}
}
}