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
Add a new message key on watchlist for "Hide"
[lhc/web/wiklou.git]
/
maintenance
/
updateSpecialPages.php
diff --git
a/maintenance/updateSpecialPages.php
b/maintenance/updateSpecialPages.php
index
d67ef6b
..
c800664
100644
(file)
--- a/
maintenance/updateSpecialPages.php
+++ b/
maintenance/updateSpecialPages.php
@@
-71,11
+71,9
@@
class UpdateSpecialPages extends Maintenance {
if ( $specialObj instanceof QueryPage ) {
$queryPage = $specialObj;
} else {
if ( $specialObj instanceof QueryPage ) {
$queryPage = $specialObj;
} else {
- if ( !class_exists( $class ) ) {
- $file = $specialObj->getFile();
- require_once $file;
- }
- $queryPage = new $class;
+ $class = get_class( $specialObj );
+ $this->error( "$class is not an instance of QueryPage.\n", 1 );
+ die;
}
if ( !$this->hasOption( 'only' ) || $this->getOption( 'only' ) == $queryPage->getName() ) {
}
if ( !$this->hasOption( 'only' ) || $this->getOption( 'only' ) == $queryPage->getName() ) {